ipfw add fwd 192.168.1.10,8110 tcp from any to any 110 via if0 in
On NetBSD and Solaris:
echo ’rdr if00.0.0.0/0port110->192.168.1.10\
port 8110 tcp’ | ipnat -f -
A.9. Setting ESETS for scanning of IMAP communication
TheIMAPcommunicationscanning is performedusingesets_imapdaemon.In the [imap]
section of ESETS conguration le set these parameters:
agent_enabled = yes
listen_addr = ”192.168.1.10”
listen_port = 8143
where‘listen_addr’ is the address of local network interface named if0 Then restart ESETS
daemon. The next step is to redirect all IMAP requests to esets_imap. In case of IP-ltering
provided by ipchains administration tool an appropriate rule is:
ipchains -A INPUT -p tcp -i if0 --dport 143 -j REDIRECT 8143
If IP-ltering mechanism is provided by iptables administration tool, the rule is:
iptables-tnat-APREROUTING-ptcp-iif0\
--dport 143 -j REDIRECT --to-ports 8143
On FreeBSD, the rule is as follows:
ipfw add fwd 192.168.1.10,8143 tcp from any to any 143 via if0 in
On NetBSD and Solaris:
echo ’rdr if00.0.0.0/0port143->192.168.1.10\
port 8143 tcp’ | ipnat -f -