heya, this sounds like a job for iptables. you have to do more than having just routes added, since you need to be able to do some packet mangling to get the traffic back to A again after it goes out to the internet. if i understand correctly you have a network like
< 192.168 lan (with a) > ==== < (eth1) B (eth0-ppp0) > === < internet >
so if memory serves you want something like
iptables -A POSTROUTING -o eth1 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
but i could be wrong (someone please correct me if i am, i do my nat'ing
with netbsd/ipf/ipnat at home:), and you'll probably want to read the
docs anyway.
hth
sean
On Sun, Jan 12, 2003 at 05:47:55PM +0100, Tommaso Moroni wrote:
> Hi!
>
> I'd like to install Debian on an old pc (hereafter called A) using an
> ADSL connection I have on another PC (hereafter called B). The problem
> is that after configuring the network on A it doesn't "see" B: the
> interface is correctly configured but a simple ping to B fails.
> I've already checked the addresses (A is 192.168.1.2, B is 192.168.1.1)
> and I think the problem is the route table on B. In fact to manage the
> ADSL connection I use the italian version of the drivers at
> http://eciadsl.flashtux.org/. The command route on computer B gives this
> output:
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.100.1 * 255.255.255.255 UH 0 0 0 ppp0
> default 192.168.100.1 0.0.0.0 UG 0 0 0 ppp0
>
> I think it lacks a default route for the eth0 interface, but I cannot
> add it as there's already another one and it's needed for the ADSL to work.
>
>
> Thanks in advance for help!
>
> Tommaso Moroni
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
msg23790/pgp00000.pgp
Description: PGP signature

