Skip to contentSkip to conversation

multiple inet and local connectivity

LARTC Stephan Jager 2 participants 2 messages Aug 6, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I have 1 local network (eth0) and 2 internet connections. I used the technique described at 4.2 in the LARTC to make a propper connection to/from the both internet connections. This works fine.

I also use SNAT to provide an internet connection from my local net (eth0). I use this iptables line:

iptables -A POSTROUTING -t nat -o eth1 -j SNAT --to-source 123.123.123.123 (123.123.123.123 is the IP address of the eth1 interface).

This workes fine. The problem is that I can't connect from my local network the the IP address of eth1 and eth2!

For example: 10.0.0.2 -> 123.123.123.123 doesn't work, but

             10.0.0.2 -> 10.0.0.1 does work (eth0 address)

Also 10.0.0.2 -> 234.234.234.234 ain't working (eth2 address)

I can't seem to fix it. I think I need some additional routing rules, but which ones I can't seem to find out.

Anybody got any tips?

Stephan

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

#1 lore raw
Quoted 1 line · Stephan Jager

Anybody got any tips?

Yes. Read the mailinglist. This has been explained about 6 weeks ago.

Doei, Arthur.

Signature · 7 lines
  /\    / |      [email protected]      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching

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