Skip to content
Snippets Groups Projects
Commit fff054fe authored by Symphorien Gibol's avatar Symphorien Gibol
Browse files

bonnes ip pour le tunnnel

parent 868bf580
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,10 @@ import traceback
tun = TunTapDevice()
tun.addr = '10.8.0.1'
tun.dstaddr = '10.8.0.2'
addrs = ("10.8.0.1", "10.8.0.2")
if len(sys.argv)>2:
addrs = tuple(reversed(addrs))
tun.addr, tun.dstaddr = addrs
tun.netmask = '255.255.255.0'
tun.mtu = 100
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment