LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables and pptp vpn (https://www.linuxquestions.org/questions/linux-networking-3/iptables-and-pptp-vpn-63215/)

SSBN 06-02-2003 11:39 AM

iptables and pptp vpn
 
I want to allow pptp traffic through my smoothwall firewall. Smoothwall uses iptables. I was told this was what I had to enter for it to work. “iptables -t nat -A portfw -p 47 -i eth1 -j DNAT --to 172.16.0.2” Eth1 is my internet connection. 192.16.0.2 is my windows vpn server. I also forwarded port 1723. But it won’t work. Is there an error in the command for forwarding protocol 47.

niknah 06-02-2003 11:53 AM

What's the error message?
protocol 47 is correct, but "portfw" may not be a valid chain.
It should be in the prerouting chain.

SSBN 06-02-2003 12:01 PM

I don't no where to find the error msg.I put the command at the end of this file. /etc/rc.d/rc.network. Should it be somewhere ells.

Soma 06-02-2003 06:41 PM

Unless you are running SmoothWall GPL 2.0 beta, you are running a 2.2.x series kernel and ipchains.

For information on how to forward ports etc. for Smoothwall GPL 1.0 look here.

SSBN 06-02-2003 09:58 PM

I am running gpl2b4. That is the one i need help with.

niknah 06-03-2003 12:24 PM

try typing in that iptables line manually and see if any errors come up.

Seal-X 06-03-2003 02:35 PM

http://www.linuxquestions.org/questi...ht=protocol+47

Look there, it might help.


All times are GMT -5. The time now is 08:33 AM.