Kernel, IPTables or Router Anomaly? Maybe me?
I can't figure this out.
Our server has three internal IP addresses on two interfaces. So we have eth0, eth0:1 and eth1.
"Oct 31 09:24:47 mail2 kernel: FIREWALLED: IN=eth1 OUT= MAC=00:09:5b:22:29:d1:00:06:25:e4:ed:a3:08:00 SRC=217.97.25.71 DST=192. 168.0.5 LEN=404 TOS=0x00 PREC=0x00 TTL=111 ID=40607 PROTO=UDP SPT=6022 DPT=1434 LEN=384"
In this case, destination 192.168.0.5 is on eth0:1. Yet it shows as eth1 with the eth1 MAC. This connections was NATed through the router so it never hit the eth1 interface. Here's part of the ifconfig.
eth0 Link encap:Ethernet HWaddr 00:50:04:65:E3:1B
inet addr:192.168.0.31 Bcast:192.168.0.255
Mask:255.255.255.0
eth0:1 Link encap:Ethernet HWaddr 00:50:04:65:E3:1B
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
eth1 Link encap:Ethernet HWaddr 00:09:5B:22:29:D1
inet addr:192.168.0.32 Bcast:192.168.0.255
Mask:255.255.255.0
You have three interfaces on the same 192.168.0.0/24. Why?
Quoted 25 lines · David C. Hart
I can't figure this out.
Our server has three internal IP addresses on two interfaces. So we have eth0, eth0:1 and eth1.
"Oct 31 09:24:47 mail2 kernel: FIREWALLED: IN=eth1 OUT= MAC=00:09:5b:22:29:d1:00:06:25:e4:ed:a3:08:00 SRC=217.97.25.71 DST=192. 168.0.5 LEN=404 TOS=0x00 PREC=0x00 TTL=111 ID=40607 PROTO=UDP SPT=6022 DPT=1434 LEN=384"
In this case, destination 192.168.0.5 is on eth0:1. Yet it shows as eth1 with the eth1 MAC. This connections was NATed through the router so it never hit the eth1 interface. Here's part of the ifconfig.
eth0 Link encap:Ethernet HWaddr 00:50:04:65:E3:1B
inet addr:192.168.0.31 Bcast:192.168.0.255Mask:255.255.255.0
eth0:1 Link encap:Ethernet HWaddr 00:50:04:65:E3:1B
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0eth1 Link encap:Ethernet HWaddr 00:09:5B:22:29:D1
inet addr:192.168.0.32 Bcast:192.168.0.255Mask:255.255.255.0
Quoted 2 lines · Ramin Dousti
You have three interfaces on the same 192.168.0.0/24. Why?
Postfix needs two. While I could create a virtual IP, NIC cards are cheap enough.
eth0: SMTP Postfix
eth1: HTTP, FTP, etc and Postfix redirects for regex header and body checks.
eth0:1 A virtual IP used exclusively to direct port scans and other miscreant traffic to.
OK, first of all don't use ifconfig and the family. Use iproute2. By doing:
ip addr add 192.168.0.31/24 dev eth0
ip addr add 192.168.0.5/24 dev eth0
ip addr add 192.168.0.32/24 dev eth1
This way you will not have the weird eth0:1 which most probably is the culprit.
Ramin
Quoted 11 lines · David C. Hart
Quoted 2 lines · Ramin Dousti
You have three interfaces on the same 192.168.0.0/24. Why?
Postfix needs two. While I could create a virtual IP, NIC cards are cheap enough.
eth0: SMTP Postfix
eth1: HTTP, FTP, etc and Postfix redirects for regex header and body checks.
eth0:1 A virtual IP used exclusively to direct port scans and other miscreant traffic to.
Quoted 7 lines · Ramin Dousti
OK, first of all don't use ifconfig and the family. Use iproute2. By doing:
ip addr add 192.168.0.31/24 dev eth0
ip addr add 192.168.0.5/24 dev eth0
ip addr add 192.168.0.32/24 dev eth1
Interesting. Thanks. Meanwhile, I had to shut IPTables down. Something was causing a problem with the Redhat list server (hormel) and only hormel.
Somehow - despite no mangle rules - packets from this server were being rejected - not seen as targeting port 25. As soon as I killed IPTables, the problem went away. I have more reading to do. A LOT more reading to do.
For now, we have non-forwarded traffic rejected at the router and I'm using SNMPDTRAPD to log what's going on.