View previous topic :: View next topic |
Author |
Message |
mahdi1234 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Thu Jun 08, 2006 6:02 pm Post subject: vpn & firewall? [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lxg Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/19265729674c9fac4bb9adf.png)
Joined: 12 Nov 2005 Posts: 1019 Location: Aachen, Germany
|
Posted: Thu Jun 08, 2006 10:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
guero61 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Fri Jun 09, 2006 12:20 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mahdi1234 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Sat Jun 10, 2006 4:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|