this post was submitted on 08 Jul 2023
5 points (85.7% liked)

networking

2779 readers
3 users here now

Community for discussing enterprise networks and the ensuing chaos that comes after inheriting or building one.

founded 2 years ago
MODERATORS
5
Advice needed (lemmy.world)
submitted 2 years ago* (last edited 2 months ago) by BloP to c/[email protected]
 

Hello networking community! I need a setup where I can forward my server from my private network to another network which has a public ip to forward the server itself to the internet. When a client connects to the server, traffic should get forwarded to my private network somehow. I know that's possible, but don't know how I can achive that.

Came back after a year, got some knowledge. I achieved this setup using WireGuard (+ PersistentKeepAlive) and custom iptables rules on an old laptop with barebones arch install. By masquerading, we loose the source ip when forwarding, and to preserve it we need a L2 tunnel (L2GRE).

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 2 years ago (1 children)

Sounds like he's behind a double NAT and wants a public IP

[โ€“] BloP 1 points 2 years ago

I don't think double NAT is my case. My ISP doesn't provide me with a public IP.