My network looks as follows:
PC1 >––––– [Router1 (Wlan)] ––––––––– [Router2] –––––––––> Internet ^ | x +––––––< PC2
On PC 1 everything works fine except that I don't get any «226 Transfer complete.» responses via FTP. This does not happen on PC 2. (Actually the same machine.)
What I want to do (also to get a better understanding of the topic) is to put my laptop between Router1 and Router2 and play proxy. To see if the 226 packet would actually arrive at Router1.
Attempt so far looks as follows (Laptop at position demarked by the x)
ifconfig eth0 192.168.1.33 netmask 255.255.255.0 up # Goes to Router2 ifconfig eth1 192.168.2.2 netmask 255.255.255.0 up route add default gw 192.168.1.1 dev eth0 echo "1" > /proc/sys/net/ipv4/ip_forward
Static IP: 192.168.2.4/24 Gateway: 192.168.2.2 DNS: 192.168.2.2
Now when pinging any address on the WWW I get a Destination Host Unreachable. How do I configure my laptop (and the router) correctly in order to have the traffic proxied through so I can examine it with e.g. Wireshark?