Split incoming traffic based on Source IP

It's been days since I've been able to do this thing which should be very trivial.

I would like to create two rules: a rule which, based on a list of source IPs, leads to 443 redirections of traffic towards the same port on the local IP

While another rule that redirects the rest of the traffic always takes 443 towards the local IP

Can someone help me?

If you share ubus call system board to see what resources you have at hand.

root@GL-MT6000:~# ubus call system board
        "kernel": "5.4.238",
        "hostname": "GL-MT6000",
        "system": "ARMv8 Processor rev 4",
        "model": "GL.iNet GL-MT6000",
        "board_name": "glinet,gl-mt6000",
        "release": {
                "distribution": "OpenWrt",
                "version": "21.02-SNAPSHOT",
                "revision": "r15812+1071-46b6ee7ffc",
                "target": "mediatek/mt7986",
                "description": "OpenWrt 21.02-SNAPSHOT r15812+1071-46b6ee7ffc"

You need to install OpenWRT
Then follow nftables guide

Alternatively ask GL-Innet forums to achieve desired results with their firmware and iptables.

1 Like