Hello everyone,
I setup static ip on my pi and here's the interface file
The problem I'm having is, I can connect to the server but I can only ping the server and nothing else.
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
iface eth0 inet static
address 192.168.10.4
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 8.8.8.8
allow-hotplug eth0
I believe I need to add this to the eth0 configuration but not sure where, tried adding it at the beginning or the end but it fails.
pre-up /etc/firewall-openvpn-rules.sh
my routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0