More restrictive second pc packet redirection mask
This commit is contained in:
parent
2c7ea57a20
commit
f9b5f6b33b
@ -109,8 +109,8 @@ services <ethX>
|
|||||||
config <eth0> --ipv4 manual 192.168.137.1 255.255.255.0 192.168.137.1
|
config <eth0> --ipv4 manual 192.168.137.1 255.255.255.0 192.168.137.1
|
||||||
config <eth1> --nameservers <DNS-SERVER>
|
config <eth1> --nameservers <DNS-SERVER>
|
||||||
# Configure packets redirections
|
# Configure packets redirections
|
||||||
iptables -I INPUT -s 192.168.137.0/24 -j ACCEPT
|
iptables -I INPUT -s 192.168.137.2/30 -j ACCEPT
|
||||||
iptables -I FORWARD -o eth0 -s 192.168.137.0/24 -j ACCEPT
|
iptables -I FORWARD -o eth0 -s 192.168.137.2/30 -j ACCEPT
|
||||||
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
|
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user