旭傑,昨天原本要連線進來,可是我沒有設定正確,所以他一直無法連線,我
在防火牆的部份也沒有設定正確...
新增的設定如下:
# Internet - LAN (RED - GREEN) 61.xx.xx.xx - 192.168.1.xx
iptables -I PREROUTING -t nat -p tcp -m multiport --dport 3389 -d $NETIP20 -j DNAT --to 192.168.1.119
iptables -I PREROUTING -t nat -p udp --dport $OUDP20 -d $NETIP20 -j DNAT --to 192.168.1.119
iptables -I FORWARD -p tcp -d 192.168.1.119 -m multiport --dport 3389 -i $RED_DEV -o $GREEN_DEV -j ACCEPT
iptables -I FORWARD -p udp -d 192.168.1.119 --dport $OUDP20 -i $RED_DEV -o $GREEN_DEV -j ACCEPT
iptables -t nat -I POSTROUTING -o $RED_DEV -p TCP -s 192.168.1.119 -j SNAT --to $NETIP20
細節的部份我就還沒去讀,有空再來研究看看了...
在防火牆的部份也沒有設定正確...
新增的設定如下:
# Internet - LAN (RED - GREEN) 61.xx.xx.xx - 192.168.1.xx
iptables -I PREROUTING -t nat -p tcp -m multiport --dport 3389 -d $NETIP20 -j DNAT --to 192.168.1.119
iptables -I PREROUTING -t nat -p udp --dport $OUDP20 -d $NETIP20 -j DNAT --to 192.168.1.119
iptables -I FORWARD -p tcp -d 192.168.1.119 -m multiport --dport 3389 -i $RED_DEV -o $GREEN_DEV -j ACCEPT
iptables -I FORWARD -p udp -d 192.168.1.119 --dport $OUDP20 -i $RED_DEV -o $GREEN_DEV -j ACCEPT
iptables -t nat -I POSTROUTING -o $RED_DEV -p TCP -s 192.168.1.119 -j SNAT --to $NETIP20
細節的部份我就還沒去讀,有空再來研究看看了...
全站熱搜
留言列表