Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ansible-warpzone
Commits
1d2728f6
Commit
1d2728f6
authored
8 years ago
by
void
Browse files
Options
Downloads
Patches
Plain Diff
keine firewall einstellungen mehr beim start des vpn tunnel setzen
parent
f1ad983e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webserver/openvpn/templates/warpzone-up.sh
+3
-3
3 additions, 3 deletions
webserver/openvpn/templates/warpzone-up.sh
with
3 additions
and
3 deletions
webserver/openvpn/templates/warpzone-up.sh
+
3
−
3
View file @
1d2728f6
#!/bin/sh
# the interface name is passed as first argument ($1)
modprobe ip_tables
iptables
-t
nat
-I
PREROUTING
-p
tcp
-d
10.0.20.2/32
--dport
389
-j
DNAT
--to-destination
127.0.0.1:389
iptables
-t
nat
-I
PREROUTING
-p
tcp
-d
10.0.20.2/32
--dport
636
-j
DNAT
--to-destination
127.0.0.1:636
#
modprobe ip_tables
#
iptables -t nat -I PREROUTING -p tcp -d 10.0.20.2/32 --dport 389 -j DNAT --to-destination 127.0.0.1:389
#
iptables -t nat -I PREROUTING -p tcp -d 10.0.20.2/32 --dport 636 -j DNAT --to-destination 127.0.0.1:636
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment