MLVPN
MLVPN copied to clipboard
Documentation
Please correct the documentation (http://mlvpn.readthedocs.io/en/latest/linux_example.html). Compiled from latest source (git).
№1
Testing the second link will need us to modify the routing table.
root@mlvpnclient:~# ip route add 213.186.33.13 via 192.168.2.1 <=========== Hm, okay..
root@mlvpnclient:~# ip route show
default via 192.168.1.1 dev eth0
213.186.33.13 via 192.168.2.2 dev eth0 <============== How? (End was 2.1, here 2.2)
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.2
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.2
№2
Everything is fine, let’s cleanup the routing table:
root@mlvpnclient:~# ip route del 213.186.33.13 <============= Okay, remove
But next:
root@mlvpnclient:~# ip route show table main
default via 192.168.1.1 dev eth0
213.186.33.13 via 192.168.2.2 dev eth0 <================== As it appeared here, did we delete it earlier?
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.2
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.2
№3 - Client
/etc/mlvpn/mlvpn0_updown.sh:
/sbin/route add proof.ovh.net dev $tuntap_intf
- What is it? Why proof.ovh.net?
№4 - Server
/etc/mlvpn/mlvpn0_updown.sh:
/sbin/ip route add 192.168.0.0/24 dev $tuntap_intf <=== In "tuntap_up" but not del when "tuntap_down"
/etc/mlvpn/mlvpn0.conf:
bindhost = "0.0.0.0" <=== Absent in two sections "[adslN]". Without these strings, an error occurs when you run "Invalid binding"
№5 - chmod
Now:
chmod 700 /etc/mlvpn/mlvpn0_updown.sh; chown root:root /etc/mlvpn/mlvpn0_updown.sh
Updated:
chmod 0600 /etc/mlvpn/mlvpn.conf; chmod 700 /etc/mlvpn/mlvpn0_updown.sh; chown root:root /etc/mlvpn/mlvpn0_updown.sh
№6 - Working directory
sudo mkdir /var/run/mlvpn
- without this action at startup error: mlvpn: unable to chroot: No such file or directory