Re: iptables nat table rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Feb 8, 2011 at 1:36 PM, Carlos S <neubyr@xxxxxxxxx> wrote:
> I am forwarding traffic on port 8080 to port 80 with following rule.
> # iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j
> REDIRECT --to-port 80
> # iptables-save
>
> However, I am unable to add it directly in /etc/sysconfig/iptables. I
> think it is used only for filter table and not nat table. So where do
> nat table rules go?  Any help?
>
 IIANM, *filter, *nat, and *mangle demark the beginning of
 rules for the respective tables in the iptables file.  If you don't
have any rules for a given table, you may not have that marker.

HTH,
-Bob
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux