- a2347476302015-12-01中级会员83982
- 本帖最后由 a234747630 于 2015-12-1 17:14 编辑 *

有偿别太黑就行 ╮(╯▽╰)╭ 实力不佳啊我
是根本跳板不了 还是我写错的原因。跳板机(IP):
iptables -t nat -A PREROUTING -p tcp --dport 500 -j DNAT --to-destination ZD_IP:500
iptables -t nat -A PREROUTING -p udp --dport 500 -j DNAT --to-destination ZD_IP:500
iptables -t nat -A PREROUTING -p udp --dport 4500 -j DNAT --to-destination ZD_IP:4500
iptables -t nat -A POSTROUTING -p tcp --dport 500 -j SNAT --to-source IP
iptables -t nat -A POSTROUTING -p udp --dport 500 -j SNAT --to-source IP
iptables -t nat -A POSTROUTING -p udp --dport 4500 -j SNAT --to-source IP目标终端(ZD_IP):
-A INPUT -p tcp --dport 500 -j ACCEPT
-A INPUT -p udp --dport 500 -j ACCEPT
-A OUTPUT -p tcp --dport 500 -j ACCEPT
-A OUTPUT -p udp --dport 500 -j ACCEPT
-A OUTPUT -p tcp --dport 4500 -j ACCEPT
-A OUTPUT -p udp --dport 4500 -j ACCEPTL2TP端口 1701.
拨了上去还是上不了有图比