Skip to content

Instantly share code, notes, and snippets.

@tiancheng91
Last active March 14, 2017 09:37
Show Gist options
  • Save tiancheng91/1ecc0c72e27cca7e7a6e2294aa810fd5 to your computer and use it in GitHub Desktop.
Save tiancheng91/1ecc0c72e27cca7e7a6e2294aa810fd5 to your computer and use it in GitHub Desktop.
tinc subnet
Address = 0.0.0.0
Port = 659
Compression = 5
Subnet = 10.200.0.0/24
Subnet = 192.168.56.0/24
#!/bin/bash
ifconfig inet down
#!/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
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