All of lore.kernel.org
 help / color / mirror / Atom feed
* Rules for Cisco VPN Client
@ 2005-03-10 14:36 Tim Evans
  2005-03-10 15:28 ` Jason Opperisano
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Evans @ 2005-03-10 14:36 UTC (permalink / raw)
  To: netfilter

Anyone have working iptables rules for supporting the Cisco VPN client?  Thanks.

--
Tim Evans, TKEvans.com, Inc.    |    5 Chestnut Court
tkevans@tkevans.com             |    Owings Mills, MD 21117
http://www.tkevans.com/         |    443-394-3864
http://www.come-here.com/News/  |    



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Rules for Cisco VPN Client
  2005-03-10 14:36 Rules for Cisco VPN Client Tim Evans
@ 2005-03-10 15:28 ` Jason Opperisano
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2005-03-10 15:28 UTC (permalink / raw)
  To: netfilter

On Thu, Mar 10, 2005 at 10:36:08AM -0400, Tim Evans wrote:
> Anyone have working iptables rules for supporting the Cisco VPN client?  Thanks.

depends how the clients are configured.

you'll always need to allow UDP 500 for IKE.

then depending on the configuration of the clients you would need one
(or some, or all) of the following:

IP Proto 50 (ESP)
UDP 4500 (PIX NAT-T)
UDP 10000 (VPN CON NAT-T 1)
TCP 10000 (VPN CON NAT-T 2)

if the VPN server is a Concentrator--the encapsulation port can be set
to pretty much any arbitrary value--consult with the admin for details.

kitchen sink rules would be:

  iptables -A FORWARD -i $INSIDE_IF -o $OUTSIDE_IF -p 50 \
    -s $INSIDE_NET -d $VPN_GW -j ACCEPT

  iptables -A FORWARD -i $INSIDE_IF -o $OUTSIDE_IF -p udp \
    -s $INSIDE_NET -d $VPN_GW --dport 500 -j ACCEPT

  iptables -A FORWARD -i $INSIDE_IF -o $OUTSIDE_IF -p udp \
    -s $INSIDE_NET -d $VPN_GW --dport 4500 -j ACCEPT

  iptables -A FORWARD -i $INSIDE_IF -o $OUTSIDE_IF -p udp \
    -s $INSIDE_NET -d $VPN_GW --dport 10000 -j ACCEPT

  iptables -A FORWARD -i $INSIDE_IF -o $OUTSIDE_IF -p tcp --syn \
    -s $INSIDE_NET -d $VPN_GW --dport 10000 -j ACCEPT

again--if the TCP/UDP encapsulation port has been changed from the
default, you'd need to accommodate for that as well.

HTH...

-j

--
"Simpson, Homer Simpson, he's the greatest guy in his-tor-y. From
 the town of Springfield, he's about to hit a chestnut tree....D'oh!"
        --The Simpsons


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-10 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 14:36 Rules for Cisco VPN Client Tim Evans
2005-03-10 15:28 ` Jason Opperisano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.