From Hentschel
Jump to: navigation, search

HM server networking

26 bytes removed, 08:48, 24 March 2017
/* Setting up VPN via SSHD */
First, on zm.home, ensure IP forwarding is enabled via <pre>sysctl net.ipv4.ip_forward</pre>, and set it to enabled in ''/etc/sysctl.config'' if not.
Second, the gateway (default router) on network B needs to be modified to redirect traffic destined for host hentschel via eth0 on host zm.home. We don't redirect all internet traffic via the tunnel, just what is destined for the hentschel host. On the Asus router, that looks like this:
[[File:asus-static-route.png|400px600px|thumb|left|Under ''LAN''->''Route'']]<br clear=both>
To actually create the tunnel, here is what needs to happen:
ip link set tun0 up
ip addr add 10.0.0.200/24 peer 10.0.0.100 dev tun0
# not needed --> arp -Ds 10.0.0.200 eth0 pub # needed?
</pre>