Networking Forums

Networking Forums > Computer Networking > Linux Networking > Cisco VPN CLient: iptables rules

Reply
Thread Tools Display Modes

Cisco VPN CLient: iptables rules

 
 
bruce_phipps@my-deja.com
Guest
Posts: n/a

 
      12-29-2008, 08:59 AM
I am using Cisco VPN Client 4.04 on Linux to log onto the VPN server
at my workplace. I use a standalone RedHat 7.3 laptop at home, with
iptables firewall and connect via a dial-up modem link. (a very simple
setup using old fashioned technology!)

I need advice on setting up iptables on my Linux laptop to work with
VPN Client.
The VPN Client works *fine* in the following cases:

(i) If I turn off the iptables firewall completely; or

(ii) If I use the following iptables rules:

# Allow incoming connections to port 500
iptables -A INPUT -j ACCEPT -p udp --dport 500

# Allow all udp traffic out!
iptables -A OUTPUT -j ACCEPT -p udp

Any ideas for a more elegant replacement to the "all udp" OUTPUT rule?
I have tried every combination of ports 500 and 4500 for this rule I
can think of.

Thanks
Bruce
 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      12-30-2008, 12:35 PM
(E-Mail Removed) <(E-Mail Removed)> wrote:
> I am using Cisco VPN Client 4.04 on Linux to log onto the VPN server
> at my workplace.


I find vpnc a good alternative.


> The VPN Client works *fine* in the following cases:
> (ii) If I use the following iptables rules:


> # Allow incoming connections to port 500
> iptables -A INPUT -j ACCEPT -p udp --dport 500


> # Allow all udp traffic out!
> iptables -A OUTPUT -j ACCEPT -p udp


> Any ideas for a more elegant replacement to the "all udp" OUTPUT rule?


What does wireshark (ethereal), or its command-line friend tshark
(tcpdump) show you? Something like this should show you VPN related
traffic:

tshark -i any -nlp proto UDP and port 500

Once you can see the traffic you should be able to determine the
necessary rules.

Regards,
Chris
 
Reply With Quote
 
bruce_phipps@my-deja.com
Guest
Posts: n/a

 
      12-31-2008, 08:20 AM
On 30 Dec, 13:35, Chris Davies <chris-use...@roaima.co.uk> wrote:
> bruce_phi...@my-deja.com <bruce_phi...@my-deja.com> wrote:
> > I am using Cisco VPN Client 4.04 on Linux to log onto the VPN server
> > at my workplace.

>
> I find vpnc a good alternative.
>
> > The VPN Client works *fine* in the following cases:
> > (ii) If I use the following iptables rules:
> > # Allow incoming connections to port 500
> > iptables -A INPUT -j ACCEPT -p udp --dport 500
> > # Allow all udp traffic out!
> > iptables -A OUTPUT -j ACCEPT -p udp
> > Any ideas for a more elegant replacement to the "all udp" OUTPUT rule?

>
> What does wireshark (ethereal), or its command-line friend tshark
> (tcpdump) show you? Something like this should show you VPN related
> traffic:
>
> tshark -i any -nlp proto UDP and port 500
>
> Once you can see the traffic you should be able to determine the
> necessary rules.
>
> Regards,
> Chris


Thanks, Chris. I may try vpnc.
tcpdump is not included in RH7.3.
Anyways, I am updating to a more modern distribution. Hopefully one
where I do not need to grapple with iptables!
Bruce
 
Reply With Quote
 
Robert
Guest
Posts: n/a

 
      12-31-2008, 03:29 PM
On Wed, 31 Dec 2008 01:20:00 -0800, (E-Mail Removed) wrote:

> On 30 Dec, 13:35, Chris Davies <chris-use...@roaima.co.uk> wrote:
>> bruce_phi...@my-deja.com <bruce_phi...@my-deja.com> wrote:
>> > I am using Cisco VPN Client 4.04 on Linux to log onto the VPN server
>> > at my workplace.

>>
>> I find vpnc a good alternative.
>>
>> > The VPN Client works *fine* in the following cases:
>> > (ii) If I use the following iptables rules:
>> > # Allow incoming connections to port 500
>> > iptables -A INPUT -j ACCEPT -p udp --dport 500
>> > # Allow all udp traffic out!
>> > iptables -A OUTPUT -j ACCEPT -p udp
>> > Any ideas for a more elegant replacement to the "all udp" OUTPUT rule?

>>
>> What does wireshark (ethereal), or its command-line friend tshark
>> (tcpdump) show you? Something like this should show you VPN related
>> traffic:
>>
>> tshark -i any -nlp proto UDP and port 500
>>
>> Once you can see the traffic you should be able to determine the
>> necessary rules.
>>
>> Regards,
>> Chris

>
> Thanks, Chris. I may try vpnc.
> tcpdump is not included in RH7.3.
> Anyways, I am updating to a more modern distribution. Hopefully one
> where I do not need to grapple with iptables!
> Bruce


If memory servers me correctly Cisco VPN uses port 10000


--

Regards
Robert

Linux User #296285
http://counter.li.org

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      01-01-2009, 12:41 AM
Robert <(E-Mail Removed)> wrote:
> If memory servers me correctly Cisco VPN uses port 10000


That's its default, yes, but I see no reason why the OP's server
administrators could not have changed it to 500. (Daft maybe, but
certainly possible.)

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP, Need quick iptables rules akak01000101@gmail.com Linux Networking 5 03-03-2008 07:45 PM
Removing iptables rules Augustus SFX van Dusen Linux Networking 7 06-05-2006 04:05 PM
Looking for iptables applications code (iptables.c) to run some rules to forward packets tvnaidu@yahoo.com Linux Networking 2 01-17-2005 05:01 PM
iptables rules for vonage Rob Ristroph Linux Networking 0 10-02-2003 06:44 AM
iptables Feedback or better way for my rules Gary Smith Linux Networking 0 08-06-2003 06:22 PM



1 2 3 4 5 6 7 8 9 10 11