2023-03-29 13:30:45 -05:00
|
|
|
#!/bin/vbash
|
|
|
|
|
|
|
|
set interfaces ethernet eth0 address 'dhcp'
|
|
|
|
set interfaces ethernet eth0 description 'WAN'
|
2023-09-15 10:22:54 -05:00
|
|
|
set interfaces ethernet eth0 hw-id 'a0:42:3f:2f:a9:69'
|
2023-03-29 13:30:45 -05:00
|
|
|
|
|
|
|
set interfaces ethernet eth1 address '10.1.0.1/24'
|
|
|
|
set interfaces ethernet eth1 description 'LAN'
|
2023-09-15 10:22:54 -05:00
|
|
|
set interfaces ethernet eth1 hw-id 'a0:42:3f:2f:a9:68'
|
2023-03-29 13:30:45 -05:00
|
|
|
set interfaces ethernet eth1 vif 10 address '10.1.1.1/24'
|
|
|
|
set interfaces ethernet eth1 vif 10 description 'SERVERS'
|
|
|
|
set interfaces ethernet eth1 vif 20 address '10.1.2.1/24'
|
|
|
|
set interfaces ethernet eth1 vif 20 description 'TRUSTED'
|
2023-07-29 06:50:41 -05:00
|
|
|
set interfaces ethernet eth1 vif 30 address '10.1.3.1/24'
|
|
|
|
set interfaces ethernet eth1 vif 30 description 'IOT'
|
|
|
|
set interfaces ethernet eth1 vif 40 address '10.1.4.1/24'
|
|
|
|
set interfaces ethernet eth1 vif 40 description 'VIDEO'
|
2023-03-29 13:30:45 -05:00
|
|
|
|
|
|
|
set interfaces wireguard wg01 address '10.0.11.1/24'
|
|
|
|
set interfaces wireguard wg01 description 'WIREGUARD'
|
|
|
|
set interfaces wireguard wg01 peer ipad-jahanson allowed-ips '10.0.11.4/32'
|
|
|
|
set interfaces wireguard wg01 peer ipad-jahanson persistent-keepalive '15'
|
|
|
|
set interfaces wireguard wg01 peer ipad-jahanson public-key 'jv1XSCkzxGY0kBfLbF79gwLVOCmyCTUmSFd36QcwiWE='
|
|
|
|
set interfaces wireguard wg01 peer iphone-jahanson allowed-ips '10.0.11.2/32'
|
|
|
|
set interfaces wireguard wg01 peer iphone-jahanson persistent-keepalive '15'
|
|
|
|
set interfaces wireguard wg01 peer iphone-jahanson public-key 'HHBmTzVQH1qt14rVqzxCUATkLRPGu5WisHyY9O4yTkM='
|
|
|
|
set interfaces wireguard wg01 peer legion-jahanson allowed-ips '10.0.11.3/32'
|
|
|
|
set interfaces wireguard wg01 peer legion-jahanson persistent-keepalive '15'
|
|
|
|
set interfaces wireguard wg01 peer legion-jahanson public-key 'OA8fW79KEJej2lbZZY/Bf7EHcRjeiDowqIBwXGRLZ3A='
|
|
|
|
set interfaces wireguard wg01 port '51820'
|
|
|
|
set interfaces wireguard wg01 private-key "${SECRET_WIREGUARD_PRIVATE_KEY}"
|