mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Add wg peer default values
This commit is contained in:
parent
333d447c6b
commit
4a50687e79
@ -36,15 +36,17 @@
|
|||||||
},
|
},
|
||||||
"wireguard": {
|
"wireguard": {
|
||||||
"server": {
|
"server": {
|
||||||
"Address": [ "10.253.3.1/24" ],
|
"Address": [ "10.8.2.1/24" ],
|
||||||
"ListenPort": [ "51820" ],
|
"ListenPort": [ "51820" ],
|
||||||
"DNS": [ "10.3.141.1" ],
|
"DNS": [ "9.9.9.9" ],
|
||||||
"PostUp": [ "iptables -A FORWARD -i wlan0 -o wg0 -j ACCEPT; iptables -A FORWARD -i wg0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT; iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE" ],
|
"PostUp": [ "iptables -A FORWARD -i wlan0 -o wg0 -j ACCEPT; iptables -A FORWARD -i wg0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT; iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE" ],
|
||||||
"PostDown": [ "iptables -D FORWARD -i wlan0 -o wg0 -j ACCEPT; iptables -D FORWARD -i wg0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT; iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE" ]
|
"PostDown": [ "iptables -D FORWARD -i wlan0 -o wg0 -j ACCEPT; iptables -D FORWARD -i wg0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT; iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE" ]
|
||||||
},
|
},
|
||||||
"peer": {
|
"peer": {
|
||||||
"Endpoint": [ "10.253.3.1" ],
|
"Address": [ "10.8.1.2/24" ],
|
||||||
"AllowedIPs": ["0.0.0.0/0"],
|
"Endpoint": [ "10.8.2.1" ],
|
||||||
|
"ListenPort": [ "21841" ],
|
||||||
|
"AllowedIPs": ["10.8.2.0/24"],
|
||||||
"PersistentKeepalive": [ "15" ]
|
"PersistentKeepalive": [ "15" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user