I'm trying to set up Ubuntu Server 16.04 as a router just to figure out how this works and maybe build a home server/router down the line sometime. Problem is, I can't seem to get it to work, not sure if it even accepts the routes I set up.
auto lo iface lo inet loopback auto enp0s3 iface enp0s3 inet static address 192.168.1.254 netmask 255.255.255.0 gateway 192.168.1.168 ip route replace default via 192.168.1.1 dev enp0s3 auto enp0s8 iface enp0s8 inet static address 220.127.116.11 ip route replace 192.168.1.0/24 via 192.168.1.254 dev enp0s3 ip route replace 18.104.22.168/24 via 22.214.171.124 dev enp0s8
This is probably the eighth or so setup I tried for the routes so it may seem odd. I tried these with "up" before, with "add" instead of "replace" and "||true" as per someone else's previous suggestion here on SE.
Network/VBox setup is as follows: The network connection from the router VM to the WAN router in my home LAN is bridged, I can ping to WAN from the router. I can ping to both router interfaces from the host. I can however not ping the host from the router or WAN from the host.
Any suggestions appreciated, thanks.
I've also added a route on my WAN router to point towards the now 192.168.2.0/24 network via 192.168.1.254.
The client (WX, .2.2) can now ping: both LAN-Router interfaces (.2.254 & .1.254), but not the WAN router (.1.1) or into the WAN (126.96.36.199)
The LAN router can ping the WAN router, both its own interfaces and into the WAN, but not to the client (.2.2)
The WAN router can ping both LAN router interfaces, but not the Client.
Windows Firewall on the client is disabled.
I've had a prior setup with a ClearOS VM that worked without configuring the WAN router, but ClearOS wasn't what I had in mind so I tried to use that config for the Ubuntu setup which strangely does not work. VBox config is the same.
As always, any help is appreciated.