Yes I solved it I only need to set a \ in a line
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Robert Nichols Sent: Tuesday, April 26, 2011 6:02 PM To: centos@centos.org Subject: Re: [CentOS] iptables
On 04/26/2011 10:19 AM, mattias wrote:
Can anyone see any errors in this scripts Iptables says Invalid target iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -i eth0 -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i virbr0 -o eth0 -j ACCEPT
Check the file for possible CRLF line terminators.