SHA256
1
0
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:
2016-02-25 14:38:11 +00:00
committed by Git OBS Bridge
parent c41a829d18
commit 9b957043e0
7 changed files with 35 additions and 16 deletions

View File

@@ -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