Here is the situation:  I have a laptop with wireless, and a desktop
with wireless and regular ethernet.

Lets call the desktop machine A.  A has eth0 (ethernet to the rest
of the world), and eth1 (10.0.10.1, in an adhoc wireless with the
laptop)

Let the laptop be machine B, with only eth1, 10.0.10.2.

Let there be a machine C, which is the gateway to the world that is
sitting on the network which machine A's eth0 is part of.


What I want to do is get machine B's packets through to machine C.
Ideally, machine B would have a realworld ip -- a setup where
machine A listened for 2 real ips, and forwarded all packets for one
out over its eth1 on the 10.0.10.* network.  However, I will settle
for the easiest solution which allows machine B to be on the
network.

I've read a million howto's, and I had a setup working a few months
ago, but it was doing so masqurading.

Curretly, nothing works.  The current, relavent info (I think) is
thus:

leko:/home/aarons#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref
Use Iface
10.0.1.0        0.0.0.0         255.255.255.0   U     0
0        0 eth0
10.0.10.0       0.0.0.0         255.255.255.0   U     0
0        0 eth1
10.0.10.0       0.0.0.0         255.255.255.0   U     0
0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     0
0        0 eth1
0.0.0.0         10.0.1.1        0.0.0.0         UG    0
0        0 eth0
0.0.0.0         10.0.1.1        0.0.0.0         UG    1
0        0 eth0
leko:/home/aarons#ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
target     prot opt     source                destination
ports
MASQ       all  ------  10.0.0.0/8           anywhere
n/a
MASQ       all  ------  anywhere             10.0.0.0/8
n/a
Chain output (policy ACCEPT):


This doesn't work.

One thought I had was creating a eth0.1 on machine A with the global
ip of machine B, then have it forward all packets from that
interface over to eth1, and vice versa.  This seems to me like it
wouldn't be that hard, but I don't know what I'm talking about.

Any help appreciated.  Please CC all replies to me.

-Aaron Solochek
 [EMAIL PROTECTED]

Reply via email to