iptables: wierd character in interface

Michal Čihař michal na cihar.com
Pondělí Květen 16 13:13:24 CEST 2005


Zdravím

On Monday 16 May 2005 13:06, Katerina Bubeníčková wrote:
> Ales Vizdal, AVONET, s.r.o. napsal(a):
> >iptables -t nat -A postrouting -o ${OUTSIDE_DEVICE} \
> >-s ${SERVER_IP} -j SNAT --to-source ${OUTSIDE_IP}
> >
> >SNAT ma definovano pouze --to-source
>
> Zkusila jsem to prehodit, tj.
>
> iptables -t nat -A POSTROUTING -o ${OUTSIDE_DEVICE} \
> -s ${SERVER_IP} -j SNAT --to-source ${OUTSIDE_IP}
>
>
> hlasi:
> Warning: wierd character in interface -s (no aliases, :, ! or *).
>
> Bad argument `192.168.3.4'            // <--  ${SERVER_IP}
> Try `iptables -h' or 'iptables --help' for more information.

Není náhodou ${OUTSIDE_DEVICE} prázdné?

-- 
    Michal Čihař | http://www.cihar.com


Další informace o konferenci Linux