티스토리 뷰

분류없음

pptp nat port forwarding

CHOMAN 2017.11.10 11:12

modprobe nf_nat_proto_gre

modprobe nf_conntrack_proto_gre

modprobe nf_conntrack_pptp

modprobe nf_nat_pptp



*nat

:PREROUTING ACCEPT [2:100]

:INPUT ACCEPT [2:100]

:OUTPUT ACCEPT [31:2356]

:POSTROUTING ACCEPT [31:2356]

# gogo

-A PREROUTING -i eth0 -s 211.234.6.15 -d 172.31.207.196 -j DNAT --to-destination 115.68.137.100

-A POSTROUTING -d 115.68.137.100 -j SNAT --to-source 172.31.207.196

# come

#-A PREROUTING -s 115.68.137.100 -j DNAT --to-destination 211.234.6.15

#-A POSTROUTING -d 211.234.6.15 -j SNAT --to-source 172.31.207.196

COMMIT

댓글
댓글쓰기 폼