Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,370
Trophies:
1
hi all,

I am trying to use netplan to setup a gateway. Here are some details of what I have set up:
1) I'm running 20.04
2) I have 5 NICs (enp5s0, enp4s0f1, enp4s0f0, enp3s0f1, enp3s0f0)
3) The enp4* and enp3* NICs are on a single PCIx card
4) The gateway sits behind my ISP provided router (it is garbage but works most of the time). The gateway is statically configured to 192.168.0.50 and it connects via enp5s0. The ISP router is on 192.168.0.1
5) the 4 NICs on the card will service various other upstream laptops/tablets/phones/other switches/desktops and forward everything to my isp router. There are ~20 devices upstream from the gateway.
6) The gateway has pihole installed on it. Pihole is configured (via dnsmasq i believe) to provide IP4 addresses in 192.168.1.1/24
7) netplan is setup with the following (copied from screen because the machine has no internet connectivity. there might be copy errors):
Code:
network:
  version: 2
  renderer: networkd
  ethernets:
    enp5s0:
      dhcp4: no
      addresses: [192.168.0.50/24]
      gateway4: 192.168.0.1
    switchports:
      match:
        name: enp[3-4]*
  bridges:
    br0:
      interfaces: [enp5s0, switchports]
      addresses: [192.168.1.1/24]
      dhcp4: true
This configuration generates and applies without error.

8) I have setup iptables to NAT from enp5s0 and br0 (iptables -t nat -A POSTROUTING -o enp5s0 -j MASQUERADE)

However, I am having mixed results:
1) I can connect to 192.168.1.1 pihole interface from the gateway
2) the clients behind the gateway are served IP addresses successfully
3) the clients behind the gateway can access the pihole interface

but:
4) I cant ping 8.8.8.8 from the gateway. Which pretty much sums it up. Connectivity from the gateway to the internet isnt working so upstream clients cant connect either

My route tables looks like this:
Destination
Gateway
Genmask
Flags
MSS
Window
irtt
Iface

0.0.0.0
192.168.0.1
0.0.0.0
UG
0
0
0
enp5s0

192.168.0.0
0.0.0.0
255.255.255.0
U
0
0
0
enp5s0

192.168.1.0
0.0.0.0
255.255.255.0
U
0
0
0
br0




Any ideas on what I can try to make this work?
07-31-2020, 10:43 AM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Cron Jobs / Crontab - NOT Able to Edit or Create File rstefaniacoxa 0 4 10-06-2020 01:14 PM
Last Post: rstefaniacoxa
  Configuring Netplan joaltun85 0 14 09-17-2020 07:23 AM
Last Post: joaltun85
  [ubuntu] Attempting to create bootable Flash Drive for general use Bergerac 0 20 08-27-2020 12:47 PM
Last Post: Bergerac
  Ubuntu 20.04 How to create a new folder MarkC1942 0 14 08-21-2020 10:15 AM
Last Post: MarkC1942
  Netplan/subiquity config first active link? nandymorenoi 0 17 07-28-2020 12:31 PM
Last Post: nandymorenoi
  [ubuntu] Wireless setup for Gateway M-6750 evolution05 4 411 04-02-2020 04:54 PM
Last Post: FrankJScott
  [ubuntu] Trying to install Ubuntu 19.10 but can't type to create login details PatrickSan1980 0 89 01-31-2020 02:27 PM
Last Post: PatrickSan1980
  [lubuntu] Create a deb mw7smartc 5 765 09-20-2018 10:12 PM
Last Post: Monday12
  [lubuntu] How to create a new key combination to type a symbol rstefaniacoxa 1 377 09-07-2018 11:20 PM
Last Post: Meeniwo9471
  Create Raid0 then Copy Existing Ubuntu Installation onto The Array meveliafritzm 0 199 09-02-2018 10:47 PM
Last Post: meveliafritzm

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020