Skip to content
Snippets Groups Projects
Commit 26d3d9dc authored by Bob Mottram's avatar Bob Mottram
Browse files

Add vpn port to firewall

parent 88814202
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment