Hi all, I’m new and need some assistance with traffic not leaving my internet router. Here is my setup running in a Hyper-V VM
eth0 10.1.1.250
eth1 10.2.1.250
eth2 10.3.1.250
My internet router is 10.1.1.1 and a Netgear R7000. I added static routes in to route 10.2 and 10.3 traffic to 10.1.1.250
I have a server on 10.2.1.10 and one on 10.3.1.10. Both servers can communicate with each other. Both can also ping 10.1.1.1. Both resolve DNS names. Both cannot ping (or browse) www.google.com and a tracert shows stoppage at 10.1.1.1 however you can ping successfully logging into vyos. I thought for sure this was a NAT issue and found 3 commands to enable nat however it did not fix my problem. Below is how I configured the vyos build and can use any assistance if someone has time.
Bob
Fresh build
Log in vyos user first time
First check the interfaces are there:
vyos@vyos# set interfaces ethernet eth0 address 10.1.1.250/24
vyos@vyos# set interfaces ethernet eth0 description “External 10.1.1.0”
vyos@vyos# set interfaces ethernet eth1 address 10.2.1.250/24
vyos@vyos# set interfaces ethernet eth1 description “Internal 10.2.1.0”
vyos@vyos# set interfaces ethernet eth2 address 10.3.1.250/24
vyos@vyos# set interfaces ethernet eth2 description “Internal 10.3.1.0”
vyos@vyos# set interfaces ethernet eth3 address 10.3.1.250/24
vyos@vyos# set interfaces ethernet eth3 description “Internal 10.3.1.0”
vyos@vyos# commit
vyos@vyos# save
vyos@vyos# set system name-server 10.1.1.1
vyos@vyos# set system gateway-address 10.1.1.1
vyos@vyos# set nat source rule 100 outbound-interface ‘eth0’
vyos@vyos# set nat source rule 100 source address ‘10.1.1.0/24’
vyos@vyos# set nat source rule 100 translation address ‘masquerade’