Skip to contentSkip to conversation

PPTP server behind firewall

DISCUSSION Johnoel Ancheta 1 participant 1 message Jun 24, 2003

lore
Share & tools
lore
#0 lore raw

hi all,

i am having some problems getting the pptp server working behind the firewall.

What i've done so far.

got the linux-2.4.20
got patch-o-matic-20030107 and patched with pptp
got iptables-1.8

compiled the kernel with GRE and PPTP support
recompiled iptables 1.8

set these rules: right now i don't care about security /etc/iptables -P INPUT ACCEPT
/etc/iptables -F INPUT
/etc/iptables -P OUTPUT ACCEPT
/etc/iptables -F OUTPUT
/etc/iptables -P FORWARD ACCEPT
/etc/iptables -F FORWARD
/etc/iptables -t nat -F

#Note eth0 has public ip
# eth1 private network

/etc/iptables -A FORWARD -i eth0 -o eth1 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
/etc/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

/etc/iptables -t nat -A PREROUTING --dport 1723 -j LOG /etc/iptables -t nat -A PREROUTING -p 47 -j LOG /etc/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1723 -j DNAT --to-destination 192.168.0.2:1723
/etc/iptables -t nat -A PREROUTING -i eth0 -p 47 -j DNAT --to-destination 192.168.0.2

/etc/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

/etc/echo "1" > /proc/sys/net/ipv4/ip_forward

so if i try the connection i get an Error 721 (Windows XP). i checked the vpn server and i doesn't get the request to login from the Event log. i'm sure the vpn server is working okay since i can log in from inside the private network.

i think that the rules i used are wrong.