Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vpn & firewall? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Thu Jun 08, 2006 6:02 pm    Post subject: vpn & firewall? [SOLVED] Reply with quote

hi there,

i'm having problem to figure what services/ports i need to enable for cisco vpn client to work.

i'm using guarddog which is frontend to iptables. If i disable firewall completely it works just fine. Though once enabled I will not get even through to login to vpn.

I've tried to track ports using cmon and iptables -L - but I must admin I'm pretty lame in this and I'm stuck now.

Does anyone know which ports are used for cisco vpn to establish connection? Alternatively how can I monitor the traffic to figure out myself which ports to open?

thanks,
mahdi


Last edited by mahdi1234 on Sat Jun 10, 2006 4:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Thu Jun 08, 2006 10:44 pm    Post subject: Reply with quote

Possibly netstat can help you (e.g. netstat --inet). Sorry, that I can't help you more with that, but I'm not too familiar with this tool.
In the worst case, you could try to do an nmap scan on your external IP address. (By the way, when setting up a firewall for a VPN'ed connection, remenber that you have a different IP.)
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Fri Jun 09, 2006 12:20 am    Post subject: Reply with quote

I've NATed multiple Cisco clients simultaneously, and there's nothing special you need to do. Just make sure you have stateful inspection set up, and you're good to go. I don't use any front-ends to iptables - I've always done raw tables. The following is a bare-bones example of what you'd need to set up NAT reasonably securely (assuming your internet connection is eth0):

Code:

# iptables -A FORWARD -o eth0 -m state --state NEW -j ACCEPT
# iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# sysctl net.ipv4.ip_forwarding=1


I pulled that code directly from where the sun don't shine, so someone correct me if it's wrong.
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Sat Jun 10, 2006 4:52 pm    Post subject: Reply with quote

i had to reboot and it's working now fine with vpnc, strange, somewhat m$ type of solution ;)

but thanks for the tips i know a little bit more now again ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum