Skip to contentSkip to conversation

Complicated Route Statement

LARTC Mike Nielsen 2 participants 2 messages Feb 6, 2003

lore
Share & tools
lore
#0 lore raw

Hi there.

I am having trouble coming up with a routing statement for the following

Lan A is connected to LAn B via a Freeswan site to site VPN

On lab B there is a cisco router which is handles traffic for an IP address.

I need to find a way to have traffic to this Other machine routed through the IPsec tunnel, to the Cisco.

Here's a crppy ascii art diagram to help explain

Lan A
192.168.24.128/26
192.168.24.130 iproute2 Firewall and VPN machine

	|	
	|	IPsec Tunnel
	|

Lan B
192.168.24.1 Iproute2 Firewall and VPN machine 192.168.24.0/26 --- 192.168.24.2 Cisco Router <--> 198.185.204.0/24

So basically I need a route statement that says

route any traffic to 198.185.204.0/24 to 192.168.24.2 Via 192.168.24.2

??

Any help you all could give would be greatly appreciate

Signature · 5 lines
-----------------------------
|\/|[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

On Wed, 5 Feb 2003, Mike Nielsen wrote:

On Lan A type

route add -net 198.185.204.0 netmask 255.255.255.0 gw 192.168.24.1

On Lan B type

route add -net 198.185.204.0 netmask 255.255.255.0 gw 192.168.24.2

On the Cisco type

ip route 192.168.24.128 255.255.255.192 192.168.24.1

Quoted 39 lines

Hi there.

I am having trouble coming up with a routing statement for the following

Lan A is connected to LAn B via a Freeswan site to site VPN

On lab B there is a cisco router which is handles traffic for an IP address.

I need to find a way to have traffic to this Other machine routed through the IPsec tunnel, to the Cisco.

Here's a crppy ascii art diagram to help explain

   Lan A
   192.168.24.128/26 
   192.168.24.130 iproute2 Firewall and VPN machine
	|	
	|	IPsec Tunnel
	|

Lan B
192.168.24.1 Iproute2 Firewall and VPN machine 192.168.24.0/26 --- 192.168.24.2 Cisco Router <--> 198.185.204.0/24

So basically I need a route statement that says

route any traffic to 198.185.204.0/24 to 192.168.24.2 Via 192.168.24.2

??

Any help you all could give would be greatly appreciate

Signature · 11 lines
----------------------------------------------------------------------
Matthew S. Crocker 
Vice President / Internet Division         Email: [email protected]
Crocker Communications                     Phone: (413) 746-2760
PO BOX 710                                 Fax:   (413) 746-3704
Greenfield, MA 01302-0710                  http://www.crocker.com
----------------------------------------------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/