On Wed, Oct 27, 2010 at 08:43:17PM +0700, Sthu Deus wrote:
> Good day.
> Could You please help me w/ routing?
> I want to make working the following scheme:
> host1 <-> eth <-> host2 <-> ppp
> On host2 it seems that the route table is wrong somehow:
> Destination Gateway Genmask Flags Metric Ref Use
> 10.10.10.10 * 255.255.255.255 UH 0 0 0
> 192.168.0.0 * 255.255.255.0 U 0 0 0
> default * 0.0.0.0 U 0 0 0
> in iptables, chain FORWARD I have:
> Chain FORWARD (policy DROP 0 packets, 0 bytes)
> pkts bytes target prot opt in out source
> destination 0 0 ACCEPT all -- * *
> 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 129
> 10247 ACCEPT all -- eth0 * 192.168.0.3 0.0.0.0/0
> cat /proc/sys/net/ipv4/ip_forward
You need to set host2 as a gateway on host1 so that you have a default
route to host2 on host1, using eth, just as you have a default route
on host2 using ppp0. Take a look at /etc/network/interfaces on both
Setting up shorewall on host2 might make things easier.
- From: Sthu Deus <firstname.lastname@example.org>