Jump to content
Not connected, Your IP: 3.22.75.247
Huddling3504

How to set up to route incoming traffic on home router through vpn?

Recommended Posts

Hey.
I am wrapping my head around to set up the port forwarding properly.

I was running home server like this:

public IP -> Home router -> VRRP (keepalived) -> Kubernetes cluster

It's just worked as simple as that.
But I am trying to run it behind VPN and having hard time grasp the idea.

I gathered ideas and here is the topology that I am thinking of:
VPN --(port forwarding)--> Wireguard on home router --(iptables)--> VRRP -> Kubernetes cluster

And the commands I could make it port forwarding:
iptables -t nat -I PREROUTING -i wgc2 -p tcp --dport 26099 -j DNAT --to 192.168.0.2:443
iptables -I FORWARD -i wgc2 -p tcp -d 192.168.0.2 --dport 443 -j ACCEPT

After several times of trial and error, when I scan the vpn_ip:26099 says it is open but only that's it. No real traffic is routed (HTTP, HTTPS).

I am running Asus router with Merlin firm. What have I missed?
Thanks to bear with me.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...