You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug("Assinging interface tun"+address_to_tunnel[str(host)] +" ip of 10."+address_to_tunnel[str(host)] +".254.2")
451
+
time.sleep(2)
452
+
453
+
# Adding local route (shoudlnt be needed)
454
+
debug("Adding static route 10."+address_to_tunnel[str(host)] +".254.0/30 via dev tun"+address_to_tunnel[str(host)])
455
+
route_cmd='ip route add 10.'+address_to_tunnel[str(host)] +'.254.0/30 via 0.0.0.0 dev tun'+address_to_tunnel[str(host)] +' proto kernel scope link src 10.'+address_to_tunnel[str(host)] +'.254.2'
456
+
debug('SHELL CMD: '+route_cmd)
457
+
os.system(route_cmd)
447
458
448
459
# Allow connections to our proxy servers themselves
debug("Assinging interface tun"+str(interface) +" ip of 10."+str(interface) +".254.2")
878
+
time.sleep(2)
879
+
880
+
# Adding local route (shoudlnt be needed)
881
+
debug("Adding static route 10."+str(interface) +".254.0/30 via dev tun"+str(interface))
882
+
route_cmd='ip route add 10.'+str(interface) +'.254.0/30 via 0.0.0.0 dev tun'+str(interface) +' proto kernel scope link src 10.'+str(interface) +'.254.2'
0 commit comments