forked from pool/ocserv
Accepting request 361424 from home:MargueriteSu:branches:network:vpn
OBS-URL: https://build.opensuse.org/request/show/361424 OBS-URL: https://build.opensuse.org/package/show/network:vpn/ocserv?expand=0&rev=5
This commit is contained in:
@@ -45,8 +45,6 @@ If you can help me, please fork this package and submit back.
|
||||
|
||||
#### Set iptables rules
|
||||
|
||||
sudo /sbin/iptables -A INPUT -p tcp --dport 9000 -j ACCEPT
|
||||
sudo /sbin/iptables -A INPUT -p udp --dport 9001 -j ACCEPT
|
||||
sudo /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
|
||||
sudo /sbin/iptables -A FORWARD -s 192.168.1.0/24 -j ACCEPT
|
||||
|
||||
@@ -55,12 +53,6 @@ you can change them in /etc/ocserv/ocserv.conf
|
||||
|
||||
Warning: Your eth0 may not exist, you can ifconfig -a to find yours.
|
||||
|
||||
#### Enable IP forward
|
||||
|
||||
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
|
||||
It doesn't live after reboot.
|
||||
|
||||
#### Test
|
||||
|
||||
sudo /sbin/ocserv -f -d 1
|
||||
|
Reference in New Issue
Block a user