1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Added iptables nat rules for uap0 config

This commit is contained in:
billz 2019-03-07 10:15:51 +00:00
parent 1df86a78a9
commit a2829dcf78

View File

@ -205,7 +205,7 @@ function default_configuration() {
lines=( lines=(
'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP' 'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP'
'iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP' 'iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP'
'iptables -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE #RASPAP'
) )
for line in "${lines[@]}"; do for line in "${lines[@]}"; do