I’m attempting to setup a ubuntu linux gateway to use NAT so virtual machines on its network can access the internet. The linux gateway has access to the internet via eth0 and the subnet is on eth1.
I have enabled ipv4 forwarding and setup iptables to use MASQUERADE. The firewall is completely off on the vm in the subnet.
What’s odd is that the request seems to be successfully forwarded to its destination but when it is received it never makes it back to the source. You can see this in the following tcpdump:
tcpdump showing request and response
The IP of the linux gateway is 192.168.1.1, the IP of the source making the ping requests is 192.168.1.101
ip route list
iptables-save
Spirks EH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.