mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-25 10:29:51 +00:00
commit
84dfc1e98d
@ -77,7 +77,7 @@ $IPTABLES -L -n -t nat > /dev/null || exit 1
|
|||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
{
|
{
|
||||||
$IPTABLES -t nat -D POSTROUTING -s $TUN_NET -d ! $TUN_NET -j MASQUERADE
|
$IPTABLES -t nat -D POSTROUTING -s $TUN_NET ! -d $TUN_NET -j MASQUERADE
|
||||||
} >& /dev/null
|
} >& /dev/null
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
@ -96,7 +96,7 @@ $IPTABLES -L -n -t nat > /dev/null || exit 1
|
|||||||
$IFCONFIG $TUN_DEV $TUN_HOST
|
$IFCONFIG $TUN_DEV $TUN_HOST
|
||||||
|
|
||||||
# masquerade the tun network
|
# masquerade the tun network
|
||||||
$IPTABLES -t nat -A POSTROUTING -s $TUN_NET -d ! $TUN_NET -j MASQUERADE
|
$IPTABLES -t nat -A POSTROUTING -s $TUN_NET ! -d $TUN_NET -j MASQUERADE
|
||||||
}
|
}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user