Created
November 6, 2019 21:00
-
-
Save teknoraver/e302a26faae808328cd8af298454fe61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
lip=192.168.0.1 | |
rip=192.168.0.2 | |
ip netns add peer | |
ip link add name vethov type veth peer name vethov netns peer | |
ip addr add ${lip}/24 dev vethov | |
ip -n peer addr add ${rip}/24 dev vethov | |
ip link set vethov up | |
ip -n peer link set vethov up | |
openvpn --config server.conf --daemon | |
ip netns exec peer openvpn --config client.conf --daemon | |
ip netns exec peer iperf3 -sD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment