Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

System and Network configuration • (Machine to act as a) Router

$
0
0
Debian 12, two network interfaces.

eth0 is the access to the internet (on 192.168.0.1), and my home network is 192.168.1.0/24 on eth1

I'm just using /etc/network/interfaces which has:

auto eth1
iface eth1 inet static
address 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0
iface eth0 inet static
address 192.168.0.2
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1


So from this machine I can ping to the outside world from both ports, for example to 192.168.0.1 and to 192.168.1.8

but... if I try to ping 192.168.0.1 from 192.168.1.8, no routing is found.

And yes, I uncommented the 'net.ipv4ip_forward=1' in /etc/sysctl.conf

I know I must be missing some thing very obvious, but I just can't see it.

Is there anything else in sysctl.conf?

Statistics: Posted by ShedPaul — 2024-06-14 22:34 — Replies 7 — Views 160



Viewing all articles
Browse latest Browse all 3260

Trending Articles