LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-02-2003, 12:39 PM   #1
SSBN
Member
 
Registered: Apr 2003
Posts: 80

Rep: Reputation: 15
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.
 
Old 06-02-2003, 12:53 PM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
What's the error message?
protocol 47 is correct, but "portfw" may not be a valid chain.
It should be in the prerouting chain.
 
Old 06-02-2003, 01:01 PM   #3
SSBN
Member
 
Registered: Apr 2003
Posts: 80

Original Poster
Rep: Reputation: 15
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.
 
Old 06-02-2003, 07:41 PM   #4
Soma
LQ Newbie
 
Registered: Dec 2002
Posts: 24

Rep: Reputation: 15
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.
 
Old 06-02-2003, 10:58 PM   #5
SSBN
Member
 
Registered: Apr 2003
Posts: 80

Original Poster
Rep: Reputation: 15
I am running gpl2b4. That is the one i need help with.
 
Old 06-03-2003, 01:24 PM   #6
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
try typing in that iptables line manually and see if any errors come up.
 
Old 06-03-2003, 03:35 PM   #7
Seal-X
LQ Newbie
 
Registered: May 2003
Location: Canada
Distribution: Ubuntu/RHEL
Posts: 21

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

Look there, it might help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN pptp Connection GroverB Linux - Networking 1 10-29-2005 04:13 PM
Pptp & Vpn bahramcho Linux - Networking 1 05-08-2005 03:15 PM
Vpn, Pptp???? ABL Linux - Networking 3 03-11-2005 05:54 PM
Pptp Vpn Iptables jrmann1999 Linux - Networking 1 08-20-2004 12:26 PM
iptables and Windows PPTP VPN jbrandis Linux - Security 2 12-17-2001 05:20 AM


All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration