LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-19-2002, 11:47 PM   #1
buttnutt
Member
 
Registered: Dec 2001
Location: Dallas, TX
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
FreeSwan and Firewalls


Hello.

I have two servers at two different sites. Each have 2 NICs and are using an iptables firewall. I also set up FreeSWAN on both machine for a VPN between the two. The VPN starts successfully. I am using NAT for my machines behind the firewall to get to the Internet. All my machines behind the firewall can connect through the VPN successfully. But, the Linux machine acting as the firewall/VPN gateway wont route traffic through the VPN if I need to connect to the machines sitting behind the firewall at the other network.

Example:

If I'm at LAN 172.16.1.0/24, I can ping the other LAN at 192.168.1.0/24.

If I try to ping 192.168.1.0/24 from the firewall/VPN gatway itself, I get 100% packet loss.

Any ideas why??
 
Old 08-20-2002, 03:46 AM   #2
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Rep: Reputation: 15
Yeah you need to open 50, 51 and 500 port on your firewall.
I'm using the same as u and it's working fine for me.

rc.firewall
----part for frees/wan

# allow IPsec
iptables -A INPUT -p udp --sport 500 --dport 500 -j ACCEPT
iptables -A OUTPUT -p udp --sport 500 --dport 500 -j ACCEPT

iptables -A INPUT -p 50 -j ACCEPT
iptables -A OUTPUT -p 50 -j ACCEPT

iptables -A INPUT -p 51 -j ACCEPT
iptables -A OUTPUT -p 51 -j ACCEPT

-----end-----

regrads, pchammer
 
Old 08-20-2002, 09:21 AM   #3
buttnutt
Member
 
Registered: Dec 2001
Location: Dallas, TX
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
I did that. I even tried flushing all rules, and I still cant ping one gateway from another.
 
Old 08-21-2002, 01:52 AM   #4
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Rep: Reputation: 15
Ok just one more thing, you can not ping from gateway machine you need to be on pc behind the gateway and firewall. Pinging between gateway does not work.

regards, pchammer
 
Old 08-21-2002, 08:01 AM   #5
buttnutt
Member
 
Registered: Dec 2001
Location: Dallas, TX
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
Why not?
 
Old 08-21-2002, 09:00 AM   #6
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Rep: Reputation: 15
I don't know why but i think it's writen in the how to of frees/wan, and i have tryed it and it does not work, but if work fine from pc behind the vpn gateway.

regards, PcKammer
 
  


Reply



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
openswan - freeswan technik Linux - Networking 0 02-23-2005 06:16 AM
freeswan Ammad Linux - Networking 0 10-08-2004 02:36 AM
FreeSwan on 9.1 kkiedrowski Slackware 2 04-01-2004 07:30 AM
Freeswan PGPNET The Jesus Linux - Software 1 11-27-2002 05:41 PM
Linux Firewalls [iso firewalls] yoogie Linux - Networking 3 01-28-2002 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 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
Open Source Consulting | Domain Registration