I have two Red Hat 7.3 machines set up.......
First Machine named webserver.aljnet.net
eth0 connected to internet and working very well
eth1 connected as 192.168.0.1
running iptables firewall with forwarding of ports 25 and 110 to 192.168.0.11
Second Machine named mail.aljnet.net
eth0 connected as 192.168.0.11
with no firewall running
I am using iptables and virtual networking on Apache
I have used QmailRocks.org Qmail setup and everything works perfect from machine 2.
I can send an email to ANY of the accounts that have been created and view them via telnet or retrieve them via Outlook on another machine with the server setting of mail.aljnet.net
My dilema is that if I try and send an email to one of my addresses, from any machine but machine 2, the message never gets to the queue or the mailboxes.
I have the following rules set up in my iptables-firewall
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT udp -- anywhere anywhere udp dpt:smtp
ACCEPT all -- anywhere anywhere
ACCEPT all -- webserver.aljnet.net anywhere
ACCEPT all -- homemain.aljnet.net anywhere
ACCEPT all -- mail.aljnet.net anywhere
ACCEPT all -- webserver2.aljnet.net anywhere
ACCEPT all -- gameserver.aljnet.net anywhere
badflags tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,
URG/FIN,PS
H,URG
badflags tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,
URG/FIN,SY
N,RST,PSH,
ACK,URG
badflags tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,
URG/FIN,SY
N,RST,ACK,
URG
badflags tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,
URG/NONE
badflags tcp -- anywhere anywhere tcp flags:SYN,RST/SYN,RST
badflags tcp -- anywhere anywhere tcp flags:FIN,SYN/FIN,SYN
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5
firewall icmp -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere udp dpt:nfs
ACCEPT tcp -- anywhere anywhere tcp dpt:nfs
silent udp -- anywhere anywhere udp spt:netbios-ns dpt:netbios-ns
dropwall all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID,NEW
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain badflags (6 references)
target prot opt source destination
DROP all -- anywhere anywhere
Chain dropwall (1 references)
target prot opt source destination
DROP all -- anywhere anywhere
Chain firewall (1 references)
target prot opt source destination
DROP all -- anywhere anywhere
Chain silent (1 references)
target prot opt source destination
DROP all -- anywhere anywhere
I have been fighting with this for two days, searching everywhere, tryiny everything, and it is probably something very simple that I am overlooking.
I can include my actual iptables-firewall script if necessary.
Any help on this situation would be GREATLY APPRECIATED!!!!!!!