Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RandomStuff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TheJoeCoder
RandomStuff
Commits
f272cf7f
Commit
f272cf7f
authored
Jan 13, 2024
by
TheJoeCoder
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
8ec96c25
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wireguard_vps-to-internal_forwarding/wg0_server.conf
+36
-0
36 additions, 0 deletions
wireguard_vps-to-internal_forwarding/wg0_server.conf
with
36 additions
and
0 deletions
wireguard_vps-to-internal_forwarding/wg0_server.conf
0 → 100644
+
36
−
0
View file @
f272cf7f
#
# Server (in the Wireguard context, exposed to the Internet)
#
[
Interface
]
## My VPN server private IP address ##
Address
=
10
.
10
.
123
.
1
/
24
## My VPN server port ##
ListenPort
=
12345
## VPN server's private key i.e. /etc/wireguard/privatekey ##
PrivateKey
= <
SERVER
PRIVKEY
>
PostUp
=
iptables
-
A
FORWARD
-
i
eth0
-
o
wg0
-
p
tcp
--
syn
--
dport
80
-
m
conntrack
--
ctstate
NEW
-
j
ACCEPT
PostUp
=
iptables
-
A
FORWARD
-
i
eth0
-
o
wg0
-
m
conntrack
--
ctstate
ESTABLISHED
,
RELATED
-
j
ACCEPT
PostUp
=
iptables
-
A
FORWARD
-
i
wg0
-
o
eth0
-
m
conntrack
--
ctstate
ESTABLISHED
,
RELATED
-
j
ACCEPT
PostDown
=
iptables
-
D
FORWARD
-
i
eth0
-
o
wg0
-
p
tcp
--
syn
--
dport
80
-
m
conntrack
--
ctstate
NEW
-
j
ACCEPT
PostDown
=
iptables
-
D
FORWARD
-
i
eth0
-
o
wg0
-
m
conntrack
--
ctstate
ESTABLISHED
,
RELATED
-
j
ACCEPT
PostDown
=
iptables
-
D
FORWARD
-
i
wg0
-
o
eth0
-
m
conntrack
--
ctstate
ESTABLISHED
,
RELATED
-
j
ACCEPT
PostUp
=
iptables
-
i
eth0
-
t
nat
-
A
PREROUTING
-
p
tcp
--
dport
80
-
j
DNAT
--
to
-
destination
10
.
10
.
123
.
2
PostUp
=
iptables
-
t
nat
-
A
POSTROUTING
-
o
wg0
-
p
tcp
--
dport
80
-
d
10
.
10
.
123
.
2
-
j
SNAT
--
to
-
source
10
.
10
.
123
.
1
PostUp
=
iptables
-
A
FORWARD
-
i
wg0
-
j
ACCEPT
;
iptables
-
t
nat
-
A
POSTROUTING
-
o
eth0
-
j
MASQUERADE
PostDown
=
iptables
-
i
eth0
-
t
nat
-
D
PREROUTING
-
p
tcp
--
dport
80
-
j
DNAT
--
to
-
destination
10
.
10
.
123
.
2
PostDown
=
iptables
-
t
nat
-
D
POSTROUTING
-
o
wg0
-
p
tcp
--
dport
80
-
d
10
.
10
.
123
.
2
-
j
SNAT
--
to
-
source
10
.
10
.
123
.
1
PostDown
=
iptables
-
D
FORWARD
-
i
wg0
-
j
ACCEPT
;
iptables
-
t
nat
-
D
POSTROUTING
-
o
eth0
-
j
MASQUERADE
[
Peer
]
## Desktop/client VPN public key ##
PublicKey
= <
CLIENT
PUBKEY
>
## client VPN IP address (note the /32 subnet) ##
AllowedIPs
=
10
.
10
.
123
.
2
/
32
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