SmoothWall: VPN Passtrough

#####
SmoothWall: VPN Passtrough
แก้ไข Configuration ใน SmoothWall
ไฟล์ /etc/rc.d/rc.firewall.up
(นำ Code ด้าล่างนีี้ไปใส่ที่ท้ายไฟล์)
Note: เปลี่ยน "192.168.1.50" เป็น IP ของ VPN Server ของคุณเองก่อน
##
vpnserver="192.168.1.50"
/sbin/iptables -N pptp
/sbin/iptables -A pptp -p tcp --destination-port 1723 --dst $vpnserver -j ACCEPT
/sbin/iptables -A pptp -p 47 --dst $vpnserver -j ACCEPT
/sbin/iptables -I FORWARD -j pptp
/sbin/iptables -t nat -N pptp
/sbin/iptables -t nat -A pptp -i $RED_DEV -p tcp --dport 1723 -j DNAT --to $vpnserver:1723
/sbin/iptables -t nat -A pptp -i $RED_DEV -p 47 -j DNAT --to $vpnserver
/sbin/iptables -t nat -A PREROUTING -j pptp
##
แก้ไขเสร็จแล้ว สั่ง reset netaddress.
/etc/rc.d/rc.netaddress.down; /etc/rc.d/rc.netaddress.up
##

ความคิดเห็น

บทความที่ได้รับความนิยม