Skip to content

Instantly share code, notes, and snippets.

@tjjh89017
Last active April 29, 2019 09:13
Show Gist options
  • Save tjjh89017/42805664fe72af6788f83f3ab8c3b5a5 to your computer and use it in GitHub Desktop.
Save tjjh89017/42805664fe72af6788f83f3ab8c3b5a5 to your computer and use it in GitHub Desktop.
interfaces {
ethernet eth0 {
address 140.131.179.251/23
address 2001:288:1009:1178::251/64
duplex auto
hw-id 00:50:56:90:ac:be
ipv6 {
dup-addr-detect-transmits 1
router-advert {
cur-hop-limit 64
link-mtu 0
managed-flag false
max-interval 600
other-config-flag false
prefix 2001:288:1009:1178::/64 {
autonomous-flag true
on-link-flag true
valid-lifetime 2592000
}
reachable-time 0
retrans-timer 0
send-advert false
}
}
smp-affinity auto
speed auto
}
ethernet eth1 {
address 140.131.180.254/24
duplex auto
hw-id 00:50:56:90:de:03
policy {
route ROUTE-180
}
smp-affinity auto
speed auto
}
ethernet eth2 {
duplex auto
hw-id 00:50:56:90:18:f6
smp-affinity auto
speed auto
}
ethernet eth3 {
address 172.31.0.2/24
duplex auto
hw-id 00:50:56:90:c5:49
smp-affinity auto
speed auto
}
loopback lo {
}
wireguard wg01 {
address 172.31.2.1/24
peer HOME {
allowed-ips 172.31.2.2/32
persistent-keepalive 15
pubkey ****************
}
port 8080
}
}
policy {
route ROUTE-180 {
rule 1 {
set {
table 180
}
source {
address 140.131.180.0/24
}
}
}
}
protocols {
static {
interface-route 172.31.3.0/24 {
next-hop-interface wg01 {
}
}
route 0.0.0.0/0 {
next-hop 140.131.179.254 {
}
}
route 140.131.178.0/23 {
next-hop 140.131.179.254 {
}
}
route 140.131.180.0/24 {
next-hop 140.131.180.254 {
}
}
route 172.31.0.0/24 {
next-hop 172.31.0.1 {
}
}
route 172.31.1.0/24 {
next-hop 172.31.0.1 {
}
}
route6 ::/0 {
next-hop 2001:288:1009:1178::1 {
}
}
table 180 {
route 0.0.0.0/0 {
next-hop 140.131.179.254 {
}
}
}
}
}
service {
dhcp-server {
shared-network-name dhcp_180 {
subnet 140.131.180.0/24 {
default-router 140.131.180.254
dns-server 8.8.8.8
dns-server 8.8.4.4
lease 3600
range 0 {
start 140.131.180.100
stop 140.131.180.200
}
}
}
}
ssh {
port 22
}
}
system {
config-management {
commit-revisions 100
}
host-name vyos
login {
user date {
authentication {
encrypted-password ****************
plaintext-password ****************
}
level admin
}
}
name-server 8.8.8.8
name-server 8.8.4.4
name-server 2001:4860:4860::8888
name-server 2001:4860:4860::8844
ntp {
server 0.pool.ntp.org {
}
server 1.pool.ntp.org {
}
server 2.pool.ntp.org {
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment