I'm running Ubuntu 18.04 with two interfaces on separate vlans. I'm running a web server which is listening on both interfaces. From each of the lans I can connect to the web server.
One of the interfaces has internet traffic being forwarded to it (eth1). I'm certain the forwarding is working, but I get no response from the web server when connecting from the internet.
I've played with rp_filter settings but no joy. I've also tried creating a static route for my external ip to force it out of eth1 (as a test).
The route table currently looks like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 100 0 0 eth0
10.1.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.1.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
168.63.129.16 _gateway 255.255.255.255 UGH 100 0 0 eth0
169.254.169.254 _gateway 255.255.255.255 UGH 100 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-0b0f26340bc7
Is this because eth0 is the default gateway? eth0 has no internet access (blocked by a firewall). Should this setup work?
Thanks