I want to setup a gateway on an Ubuntu 18.04 machine with 2 eth ports - ETH1 - WAN connection, connected to my corporate network with DHCP ETH0 - LAN connection, connected to my laptop statically

I need to use netplan.

Please assist with sample configuration. thank you!

  • does this help? – Doug Smythies Oct 4 at 22:57
  • Thanks Doug. I am just not sure how to route my LAN traffic thru my WAN interface. What are the routing rules and iptables, and how do I configure it using netplan? Thanks again! – Amir Dallal Oct 5 at 23:15
  • I don't know that any special routing rules are required, I don't have any. A simple router iptables rules set (no firewall stuff) example is here. – Doug Smythies Oct 5 at 23:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.