Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I make LAN on (eth2) forward packets to other LAN (eth0) (Win7 PC)?

Both the LANs are connected to Ubuntu PC. I can ping from PC connected to eth0 to PC connected to eth2. However, I can not ping from PC connected to eth2 to PC connected to eth0.

You can see tracert can complete on way but not other way. How to make that work?

This way from second Win7 works to first Win7:


Tracing route to WIN7 []
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  SCOTT-P5QC []
  2    <1 ms    <1 ms    <1 ms []
  3    25 ms    24 ms    31 ms  WIN7 []
  4    18 ms    17 ms    40 ms  WIN7 []

Trace complete.

This way from first Win7 to second Win7 is broken:


Tracing route to over a maximum of 30 hops

  1    52 ms     1 ms     1 ms []
  2    43 ms    98 ms    45 ms
  3    45 ms   105 ms    24 ms  SCOTT-PC []
  4  SCOTT-PC []  reports: Destination protocol unreachable.

Trace complete.

From first Win7 to Ubuntu router works:


Tracing route to SCOTT-P5QC []
over a maximum of 30 hops:

  1   105 ms    <1 ms     4 ms []
  2    19 ms    17 ms    33 ms
  3    35 ms    34 ms     5 ms  SCOTT-P5QC []

Trace complete.

netstat routes in Ubuntu router:

scott@scott-P5QC:~$ netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         UG        0 0          0 eth2       *        U         0 0          0 eth0
link-local      *          U         0 0          0 eth0     *        U         0 0          0 eth2

Hand copy of LAN layout:

Hand copy of LAN layout

I have also posted this question at Ubuntu Forums

share|improve this question

Solved by installing webmin. Then used it to reset iptables. Seriously, a great tool for administering the firewall.

webmin told me 2 rules were in the iptables which it could not understand, so I save iprules to a file, did a reset and all the 3 PCs can share files.

A defacto firewall is running all the time using iptables. So they must be modified.

scott@scott-P5QC:~$ sudo dpkg -i webmin_1.580_all.deb
Selecting previously unselected package webmin.
(Reading database ... 229686 files and directories currently installed.)
Unpacking webmin (from webmin_1.580_all.deb) ...
Setting up webmin (1.580) ...
Webmin install complete. You can now login to xxxxxxxxxxxxxxxxxxx
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot

To show what it looks like:

What it looks like

Source - Ubuntu Geek

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.