Hi, I'm trying to set up my home server to act as a transparent Squid proxy but so far I have not been able to get the network configured properly to then set up Squid (which is currently not installed).
I have to NICs, eth0 is my internal network (192.168.100.0/24) which serves ip addresses using DHCP, and eth1, which is my internet facing NIC (192.168.1.0/24). I have sucessfully configured DHCP3 to assign ip addresses on eth0 and computers connected to this NIC can ping other computers, and both of the servers ip addresses, but can't ping anything on eth1's network.
I believe I have a problem with routing but don't know where the problem is. I've enabled ip forwarding in the kernel so I think the problem lies in either iptables or route.
Here's the output from some commands:
/etc/network/interfaces:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth1 eth0
iface lo inet loopback
# The primary network interface
iface eth1 inet static
address 192.168.1.253
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.254
iface eth0 inet static
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
ifconfig:
Code:
eth0 Link encap:Ethernet HWaddr 90:f6:52:00:e4:e3
inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::92f6:52ff:fe00:e4e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:40782 (39.8 KiB)
Interrupt:21 Base address:0x4000
eth1 Link encap:Ethernet HWaddr 00:1a:a0:91:9c:4c
inet addr:192.168.1.253 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:a0ff:fe91:9c4c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1467 errors:0 dropped:0 overruns:0 frame:0
TX packets:370 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:306579 (299.3 KiB) TX bytes:75382 (73.6 KiB)
Interrupt:20 Memory:fdfc0000-fdfe0000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:639 (639.0 B) TX bytes:639 (639.0 B)
iptables -L:
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
route:
Code:
192.168.100.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.254 0.0.0.0 UG 0 0 0 eth1
Please let me know if you can see my problem, I can't see anything but I'm not fully sure what I'm doing either.
Thanks.