Skip to content

Commit

Permalink
Remove ipv4 forwarding and make tun to have a test
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLau committed Feb 10, 2015
1 parent b9e9f50 commit e94cf82
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ];
fi
fi

# Open ipv4 ip forward
sysctl -w net.ipv4.ip_forward=1

# Enable NAT forwarding
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

# Enable TUN device
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun

# Run OpennConnect Server
exec "$@"

0 comments on commit e94cf82

Please sign in to comment.