Added configurations for main-site linux host and off-site linux host

Added GNS3 example topology image
This commit is contained in:
2026-01-13 13:47:34 -05:00
parent a8b2a4decc
commit 2686eae4ab
13 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh
#
# This script is for creating a bridge interface, assigning an IP address, and adding physical interface ens1 to it.
# Create bridge
ip link add type bridge
# name is non deterministic, fix
ip address add 200.1.0.4/16 dev bridge0
# Change bridge0 mac address to not conflict with bridge interface of other wireguard peer
ip link set bridge0 address ee:3b:6b:e2:fc:b2
# Add physical nic to bridge
ip link set ens1 master bridge0
ip link set ens1 up
ip link set bridge0 up
# Static Routes
# default
ip route add default via 200.1.0.1
# to reach l2tp tunnel interface through wg0
ip route add 200.1.0.3/32 via 192.168.1.1
# to be able to reach wireguard peer over the internet
ip route add 200.1.0.2/32 via 200.4.0.1