Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-ocserv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-ocserv
Commits
e94cf823
Commit
e94cf823
authored
Feb 10, 2015
by
Tommy Lau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ipv4 forwarding and make tun to have a test
parent
b9e9f50c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
docker-entrypoint.sh
docker-entrypoint.sh
+0
-12
No files found.
docker-entrypoint.sh
View file @
e94cf823
...
...
@@ -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
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment