Add vpn port to firewall
This commit is contained in:
parent
88814202a6
commit
26d3d9dcd3
|
@ -139,6 +139,7 @@ function firewall_disable_vpn {
|
|||
iptables -t nat -D POSTROUTING -s ${EXTERNAL_IPV4_ADDRESS}/24 -o ${FIREWALL_EIFACE} -j MASQUERADE
|
||||
iptables -D OUTPUT -o tun+ -j ACCEPT
|
||||
save_firewall_settings
|
||||
sed -i '/VPN=/d' $FIREWALL_CONFIG
|
||||
}
|
||||
|
||||
function firewall_enable_vpn {
|
||||
|
@ -154,6 +155,7 @@ function firewall_enable_vpn {
|
|||
save_firewall_settings
|
||||
|
||||
firewall_update_external_ip
|
||||
echo "VPN=1194" >> $FIREWALL_CONFIG
|
||||
}
|
||||
|
||||
function configure_firewall {
|
||||
|
|
Loading…
Reference in New Issue