Re: iptables

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



> Thanks Christopher,
>
> I had updated my rules to
>
> *nat
> :OUTPUT ACCEPT [0:0]
> :PREROUTING ACCEPT [0:0]
> :POSTROUTING ACCEPT [0:0]
> -A PREROUTING -t nat -p tcp --dport 26 -j REDIRECT --to-port 25
> COMMIT
> # Completed
>
> When I did a restart, there is an error.
>
> Flushing firewall rules:                                   [  OK  ]
> Setting chains to policy ACCEPT: nat mangle filter         [  OK  ]
> Unloading iptables modules:                                [  OK  ]
> Applying iptables firewall rules: iptables-restore v1.3.5: Line 52 seems to
> have a -t table option.
>   
Argh...forgot to take the '-t nat' part out.

> Error occurred at line: 52
> Try `iptables-restore -h' or 'iptables-restore --help' for more information.
>                                                            [FAILED]
>
> Line 52 is -A PREROUTING -t nat -p tcp --dport 26 -j REDIRECT --to-port 25
>   

Just delete the '-t nat' portion. The table has already been set above 
(*nat).
_______________________________________________
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