Re: port forward pop traffic

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: elemint@hotpop.com
Date:  
To: PLUG
Subject: Re: port forward pop traffic
hostname:~# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 110 -j
DNAT \--to-destination destination.ip
hostname:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination


Chain FORWARD (policy DROP)
target     prot opt source               destination


Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


Chain RULE_0 (0 references)
target     prot opt source               destination


Chain RULE_1 (0 references)
target     prot opt source               destination


Chain RULE_3 (0 references)
target     prot opt source               destination




After I enter the command the output from iptables -L does not change.


Jim



On Fri, 2004-02-27 at 13:39, Jeremy C. Reed wrote:
> On Fri, 27 Feb 2004 wrote:
>
> > I tried that command but it did not work, I just got the below output
> >
> > telnet server.ip 110
> > Trying server.ip...
>
> That does not show that it did not work. Use tcpdump and/or look at your
> iptables details to see what happened.
>
> The iptables command below shows it is for the eth0 interface -- where the
> packet is received. Your example above doesn't tell us enough information.
>
> > > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 110 -j DNAT \
> > > --to-destination 192.168.2.2
> > >
> > > Where eth0 is your outside interface and 192.168.2.2 is the system that
> > > the POP3 traffic should go to.
>
>    Jeremy C. Reed
>    http://www.reedmedia.net/

>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss