Yes I solved it I only need to set a \ in a line -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Robert Nichols Sent: Tuesday, April 26, 2011 6:02 PM To: centos at 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. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it. _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos