Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Thanks, for enlightening this routing-newbie. I will try out your solution soon enough and let you know. Meanwhile, I ran into tun2socks that is part of the BadVPN tool. Would greatly appreciate your opinion on this program vs. your solution... as, once again, I'm a routing/networking-newbie. Commented May 18, 2013 at 14:18
  • 1
    @Harry I cannot really comment on this program as I don't know it. But "VPN" sounds like configuration effort and CPU load which you both don't need. VPNs are not used to enable connectivity; they are used to enable security. You asked for connectivity. Commented May 18, 2013 at 14:50
  • Your solution didn't work. I set up A to be the default gwy on B. Then, I tried the 1st iptables command. When it didn't work, I tried the 2nd and 3rd ones also... which didn't work either. What do I do now? Commented May 19, 2013 at 5:12
  • 1
    @Harry Strange. I guess you have to use tcpdump on A then to have a look what happens to the packets. Do they arrive at A, do they leave with the source address rewritten to A, do responses arrive from the Internet? Commented May 19, 2013 at 5:16
  • 1
    @Harry Assumed you ping 1.2.3.4 from B and the A interface is eth0 then you need: tcpdump -i eth0 -n host 1.2.3.4 Commented May 19, 2013 at 6:02