iptables: wierd character in interface
Ales Vizdal, AVONET, s.r.o.
ales.vizdal na avonet.cz
Pondělí Květen 16 12:46:02 CEST 2005
On Mon, May 16, 2005 at 12:43:00PM +0200, Ales Vizdal, AVONET, s.r.o. wrote:
> On Mon, May 16, 2005 at 12:34:44PM +0200, Katerina Bubeníčková wrote:
>
> Dobry den,
>
> > instaluji novy firewall, slackware 10.1 a chci na nej prenest fungujici
> > pravidla z jineho fw.
> > iptables v1.2.11 mi nechteji vzit napr. prikaz
> >
> > iptables -t nat -A postrouting -o ${OUTSIDE_DEVICE} -j SNAT -s
> > ${SERVER_IP} --to-source ${OUTSIDE_IP}
> > hlasi:
> > Warning: wierd character in interface -j (no aliases, :, ! or *).
> >
> > Bad argument `SNAT'
> > Try `iptables -h' or 'iptables --help' for more information.
>
>
> iptables -t nat -A postrouting -o ${OUTSIDE_DEVICE} \
> -s ${SERVER_IP} -j SNAT --to-source ${OUTSIDE_IP}
a postrouting musi byt psano jako POSTROUTING
> SNAT ma definovano pouze --to-source
--
Ales Vizdal, AVONET, s.r.o.
Další informace o konferenci Linux