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

Re: Apache Not Serving Up Documents



On Tue, Mar 11, 2003 at 08:24:03AM -0600, Joseph A Nagy Jr wrote:
> Nicolas Kratz wrote:
> >
> >Here are known good iptables rules for SMTP, edit as necessary:
> >
> >iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 25 -j DNAT \
> >--to `host balrog | sed -e 's/^.*address //'`:25
> >iptables -I  FORWARD 2 -o eth0 -p tcp --dport 25 -j ACCEPT
> >
> 
> janjrent@jan-jr-ent:~$ iptables -t net -A PREROUTING -i ppp0 -p t
> cp --dport 25 -j DNAT \ --to 'host balrog | sed -e 's/^.*address
> //' :25
> >
> 
> It brings me a gt sign prompt. I'm off to read the iptables how to as 
> I'm not sure what I need to change.

I haven't studied what that rule does, but you haven't copied it accurately.

You've misspelled nat, turned backticks into quotes (` -> '), and missed a
backtick completely. It's the mismatched quotes that give you the ">"; it's
waiting for you to finish. Also, the backslash is there to continue a line;
it doesn't make sense in the middle of a line.

HTH,

Richard



Reply to: