[CentOS] iptables

alexus alexus at gmail.com
Thu Sep 16 17:01:02 EDT 2010


On Thu, Sep 16, 2010 at 4:18 PM,  <m.roth at 5-cent.us> wrote:
> alexus wrote:
>> I'm trying to do some simple tcp port forwarding
>>
> <snip>
>> [root at wcmisdlin02 ~]# iptables --table nat --append PREROUTING --proto
>> tcp --dport 80 --jump DNAT --to 10.52.208.223:80
> <snip>                                      ^^^
>> [root at wcmisdlin02 ~]# curl --verbose http://10.52.208.221:80
>                                                        ^^^
>> * About to connect() to 10.52.208.221 port 80
>> *   Trying 10.52.208.221... Connection refused
>> * couldn't connect to host
>
> Could this be a problem?
>
>          mark
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

iptables contains a rule where to forward traffic
and i'm testing against my local machine and not a remote
how is that a problem?

if i'll be hitting remote machine then i dont really need a redirect
-- 
http://alexus.org/


More information about the CentOS mailing list