I have not done IP forwarding via modifying the routing tables.....it
could be a legacy of the "routed" daemon (or may be it exists only in
BSD?)

Possibly it is because IP forwarding is disabled by default.

http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/

But IP forwarding via other means like IP tables and SSH I have done
before.

I read my mails from home or notebook via SSH tunnelling over
Internet, but because the SSH gateway whom my notebook talked to is
NOT the email server, I have to specify a port forwarding in my
notebook for forward to another email server after the connection to
the SSH gateway is established, and this email server is inside the
intranet protected by the SSH gateway.

Search for keywords like "LocalForward", "config" (named of the SSH
configuration file) in Google:

http://www.google.com/search?q=IP+forwarding+setup+linux+ssh&btnG=Google+%E6%90%9C%E7%B4%A2&lr=

http://tldp.org/HOWTO/IP-Masquerade-HOWTO/forwarders.html
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html
http://www.troubleshooters.com/linux/ip_fwd.htm
http://www.ox.compsoc.org.uk/~steve/portfw-2.2.html (using IP chains)



On 10月23日, 上午3时51分, "Maninder Singh" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On my HOST (FC6), i have two User Mode Linux (UML) clients.
>
> To make one of the UMLs IP Forwarder, I thought of a setup as shown in the
> diagram attached where a line between two interfaces indicates that both
> have same class IP addresses. But it raises following issues:
>
> (I used following IP Addresss:
>
> host->tap1      =  180.31.5.200 /24
> host->tap0      =  172.31.5.253 /24
> UML1->eth0    =  172.31.5.254 /24
> UML1->eth0:0 =  198.162.10.4 /24
> UML2->eth0    =  180.31.5.201 /24
> UML2->eth0:0 =  198.162.10.3 /24
> )
>
> 1) UML1->eth0:0  and UML2->eth0:0   never get connected this way even if we
> assign same class IPs to them. (So, i should not have shown a line between
> them). So, is this an infeasible setup?
>
> 2) Secondly, at host, i dont want to make default gateway . It affects my
> ppp0 interface also which connects to Internet.
>     I tried "route add -net 172.31.5.0 mask 255.255.255.0 gw 172.31.5.254"
> which does not solve the problem. Is it wrong?
>
> -Maninder
>
>  vn2.JPG
> 18K查看下载

Reply via email to