Last active
March 14, 2017 09:37
-
-
Save tiancheng91/1ecc0c72e27cca7e7a6e2294aa810fd5 to your computer and use it in GitHub Desktop.
tinc subnet
This file contains 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
Address = 0.0.0.0 | |
Port = 659 | |
Compression = 5 | |
Subnet = 10.200.0.0/24 | |
Subnet = 192.168.56.0/24 |
This file contains 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/bash | |
ifconfig inet down |
This file contains 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/bash | |
ifconfig inet 10.200.0.1 netmask 255.255.255.0 up | |
ip route add 10.200.0.0/24 dev inet | |
## client subnet | |
## ip route add 192.168.56.0/24 via 10.200.0.100 | |
## windows replay | |
## route add 10.200.0.0/24 10.200.0.100 | |
## sudo sysctl -w net.ipv4.conf.all.rp_filter=0 | |
## sudo sysctl -w net.ipv4.ip_forward=1 |
This file contains 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
Name = jp_vultr | |
Device = /dev/net/tun | |
#Mode = switch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment