[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[suse-security] Re: [?? Probable Spam] Re: [suse-security] Martian source... Need to have route to other networks via internal interface. What to do?

Thanks a lot!

Nice solution...

Sergei Keler
General DataComm
tel.:     +7(812)325-1085
fax:     +7(812)325-1086

On 24.11.2005, at 3:24, Muralito wrote:

Sergei Keler wrote:
I have SLES9 and two interfaces eth0 & eth1.
eth0 has real ip address like 217.x.x.x
eth1 has local ip address
Default gateway on this system belongs to real ip address network 217.x.x.x via eth0.
eth0 is described as External inteface in suse firewall.
eth1 is described as Internal one.
No NAT etc.
Kernel security is on.
LAN has several nets like 192.168.x.0/24.
Accessing net like i got 'martian source' kernel message. I tried to make route to via but still have same error log. Where to dig? I dont want to create aliases for each network (it works but too ugly). Is possible the pretty solution for me?

Linux have multiple routing tables, so you can have multiple default gateways.
For example you can do:
ip rule add to table 100
ip route add table 100 via dev eth1

See ip rule help, ip route help or read http://lartc.org/howto/