Skip to contentSkip to conversation

Problems with source routing

LARTC Javier Miguel Rodríguez 2 participants 2 messages Jan 19, 2004

lore
Share & tools
lore
#0 lore raw

Hello

I have the following problem:

LAN<--->LINUX_ROUTER<--> 2 internet gateways

gateway1: adsl
gateway2: ppp connection

I want the following

Machines from LAN going to Internet tcp port 80 :-> gateway1 Machines from LAN goint to Internet tcp port 22 :-> gateway2 Everything else: -> gateway1

How can I acomplish this? I am using kernel 2.4.24

Can I combine dead gateway detection with the previous? how?

Greetings from Spain!

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

#1 lore raw

Witaj Javier,

W Twoim liœcie datowanym 19 stycznia 2004 (13:35:04) mo¿na przeczytaæ:

JMR> Hello

JMR> I have the following problem:

JMR> LAN<--->LINUX_ROUTER<--> 2 internet gateways

JMR> gateway1: adsl
JMR> gateway2: ppp connection

JMR> I want the following

JMR> Machines from LAN going to Internet tcp port 80 :-> gateway1 JMR> Machines from LAN goint to Internet tcp port 22 :-> gateway2 Everything else: ->> gateway1

JMR> How can I acomplish this? I am using kernel 2.4.24

JMR> Can I combine dead gateway detection with the previous? how?

JMR> Greetings from Spain!

Hint: firewall mark + policy routing

Read the archives, its trivial.

Signature · 6 lines
Pozdrowienia,
 Robert                            mailto:[email protected]

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