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).

  • orangeboats@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    If you have IPv6 connection and the address starts with “2”, then your public address is the IPv6 address.

    • BloP@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Nope it just doesn’t support it. I tinkered a bit in router config enabling IPv4/IPv6. But didn’t get IPv6 address from ISP. Still using ADSL2+