I used the instructions here:
https://linuxhint.com/centos7_router/#: ... hat's%20it.
all my lan machines can access the internet through it (through eth0). however the device itself cannot access the internet. if I ssh into the router I can't ping google and i can't download anything onto the router machine itself.
I figured I must have something wrong with my ethernet port configs but can't work out what the problem is.
here is ifcfg-eth0:
Code: Select all
BOOTPROTO=none
DEFROUTE=yes
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.1.254
PREFIX=24
GATEWAY=<my-public-ip-address>
UUID=d634ce80-13c0-4b11-a782-643359d4cac6
HWADDR=b8:27:eb:d4:07:97
Code: Select all
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
NAME=eth1
DEVICE=eth1
ONBOOT=yes
UUID=0173e06c-da2f-4cb7-9cbd-673cd5558eea
HWADDR=00:90:9a:9d:a6:c2
Code: Select all
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=yes
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth1
PROVIDER=DSLppp0
USER=<broadband-username>
PEERDNS=no
DEMAND=no