Skip to content

Commit

Permalink
Replace $LAN_IF with eth0
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Seefried committed Jun 12, 2019
1 parent 8e66652 commit 79fa165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ firewall-cmd --permanent --direct --add-rule ipv6 filter FORWARD_direct 0 -i tun
Ако използвате iptables

```console
iptables -t nat -A POSTROUTING -o $LAN_IF -s 10.8.0.0/24 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -s 10.8.0.0/24 -j MASQUERADE
#Внимание: Ако използвате tcp протокола трябва да смените -p udp на -p tcp и --ddport 1194 на --ddport 443
iptables -A INPUT -i eth0 -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun0 -j ACCEPT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ firewall-cmd --permanent --direct --add-rule ipv6 filter FORWARD_direct 0 -i tun
If you are using iptables

```console
iptables -t nat -A POSTROUTING -o $LAN_IF -s 10.8.0.0/24 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -s 10.8.0.0/24 -j MASQUERADE
#Note: If you use tcp protocol you must change -p udp to -p tcp and --ddport 1194 to --ddport 443
iptables -A INPUT -i eth0 -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun0 -j ACCEPT
Expand Down

0 comments on commit 79fa165

Please sign in to comment.