Hi I hope you can shed some light on this.
I installed a firewall/gateway on an AMD 1.1gHz PC with 256M RAM, 20G HDD
RTL8139 (rtl8139too driver) as eth1 internet facing and 3Com 3C59x eth0 lan
facing.
The OS is Mandrake 8.2 being the only distro that would actually boot. The
firewall is iptables configured as follows:
--------------------------------------------------------
#### NAT
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -o eth1 -j SNAT --to-source 203.xxx.yyy.zzz
# alpha for privacy for this post
COMMIT
#### MANGLE
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
#### FILTER
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
--------------------------------------------------------
Now port 80 (http) works fine so does port 25. The trouble is with port 110
not receiving emails at proper speeds, 'tis very slow. Eth1 connects to a
Motorola Surfboard cable modem. Here is chkconfig --list
--------------------------------------------------------
alsa 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
kheader 0

ff 1

ff 2

n 3

n 4

ff 5

n 6

ff
keytable 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
usb 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
netfs 0

ff 1

ff 2

ff 3

n 4

n 5

n 6

ff
network 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
partmon 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
random 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
rawdevices 0

ff 1

ff 2

ff 3

n 4

n 5

n 6

ff
sound 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
harddrake 0

ff 1

ff 2

ff 3

n 4

n 5

n 6

ff
syslog 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
crond 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
xfs 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
portmap 0

ff 1

ff 2

ff 3

n 4

n 5

n 6

ff
kudzu 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
anacron 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
atd 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
devfsd 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
gpm 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
internet 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
iptables 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
nfslock 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
numlock 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
sshd 0

ff 1

ff 2

n 3

n 4

n 5

n 6

ff
smb 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
squid 0

ff 1

ff 2

ff 3

n 4

n 5

n 6

ff
nfs 0

ff 1

ff 2

ff 3

ff 4

ff 5

ff 6

ff
dhcpd 0

ff 1

ff 2

ff 3

n 4

n 5

n 6

ff
--------------------------------------------------------
What I'm wondering is why the performance is so abysmal. Here is the output
from /var/log/daemons/errors:
--------------------------------------------------------
Sep 11 09:48:17 gwfw dhcpd: receive_packet failed on eth0: Network is down
--------------------------------------------------------
But the network is not down at all!!! Here is the output from ifconfig:
--------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:50

A:22:C5:E4
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98904 errors:21 dropped:14 overruns:7 frame:1
TX packets:61454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:25291862 (24.1 Mb) TX bytes:27603675 (26.3 Mb)
Interrupt:10 Base address:0xe800
eth1 Link encap:Ethernet HWaddr 00:E0:4C:0A

4:29
inet addr:203.xx.yyy.zzz Bcast:203.97.253.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44471803 errors:1 dropped:0 overruns:0 frame:0
TX packets:151730 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2725370421 (2599.1 Mb) TX bytes:53823034 (51.3 Mb)
Interrupt:11 Base address:0xef00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8851 errors:0 dropped:0 overruns:0 frame:0
TX packets:8851 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:670508 (654.7 Kb) TX bytes:670508 (654.7 Kb)
--------------------------------------------------------
You can see on the lan side (eth0) there are a lot of RX packet errors. The
Linux firewall on eth0 is processing netbios broadcasts from the two
Windows boxes it's attached to which may account for the errors but I can't
imagine that small number affecting overall performance on port 110.
What on earth else should I be looking at to troubleshoot this problem?
Thanks for your indulgence.
:-) Peter