Hello,
I am setting up LVS-NAT to do pop3 & smtp service, pop3 seem OK. The problem
is smtp, which I can't send & receive emails with attachment, The qmail
program said ' he can't do translation during the attachment tranfer'
(something like that), actually My LVS is baring firewall duty, my runing
script is
ipchains -F
ipchains -X
ipvsadm -C
ipchains -P input DENY
ipchains -P output DENY
ipchains -A forward -s 192.168.1.0/24 -d 0.0.0.0/0 -j MASQ
ipchains -A input -i eth1 -s 192.168.1.0/24 -j ACCEPT
ipchains -A output -i eth1 -d 192.168.1.0/24 -j ACCEPT
ipvsadm -A -t 203.186.6.8:25 -s rr
ipvsadm -a -t 203.186.6.8:25 -r 192.168.1.100:25 -m
ipchains -A input -p tcp -s 0.0.0.0/0 1024:65535 -d 203.186.6.8/32 25 -j
ACCEPT
ipchains -A output -p tcp ! -y -s 203.186.6.8/32 25 -d 0.0.0.0/0
1024:65535 -j ACCEPT
ipchains -A input -p tcp ! -y -s 0.0.0.0/0 25 -d 0.0.0.0/0 1024:65535 -j
ACCEPT
ipchains -A output -p tcp -s 0.0.0.0/0 1024:65535 -d 0.0.0.0/0 25 -j ACCEPT
ipchains -A output -d 0.0.0.0/0 -j DENY -l
ipchains -A input -s 0.0.0.0/0 -j DENY -l
Is there anything I needed to consider?
Thanks for help
|