MS PPTP Server behind Debian Internet Gateway

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List,

i've spent the last days trying to get connections from the Internet to a MS Windows 2003 Server on the local LAN via PPTP working. The LAN is connected to the Internet via a Debian box (vanilla 2.4.22 Kernel)which does the pppoe handling and masquerading:

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

This works.

While trying to make the Windows 2003 Server available for pptp connections from the outside [internet] i read a lot on the web and this mailinglists archive and came to the conclusion that i will have to patch the kernel with the pptp-conntrack-nat patch from Harald Welte [ http://www.netfilter.org/documentation/pomlist/pom-extra.html#pptp-conntrack-nat ] and compile the userland tools to make things work.

But browsing a Forum i found the following fragments which actually do what i was trying:

iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 1723 -j DNAT --to-destination 192.168.200.99
iptables -A FORWARD -i ppp0 -m state --state NEW -p tcp -d 192.168.200.99 --dport 1723 -j ACCEPT 

iptables -A FORWARD -i ppp0 -m state --state NEW -p 47 -d 192.168.200.99 -j ACCEPT 
iptables -t nat -A PREROUTING -i ppp0 -p 47 -j DNAT --to-destination 192.168.200.99

192.168.200.99 is the Windows 2003 Server.

Is the above code sufficient? Will i run into trouble with it sooner or later? Users from the LAN don't and won't use PPTP Connections to other sites via internet. For which scenario do i have to patch the Kernel with the pptp-conntrack-nat patch?

Thanks for reading.

Kind regards

Phil




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux