Tema: Re: iptables, snat, dnat
Autorius: Artūras Šlajus
Data: 2009-03-27 14:43:07
TZ wrote:
> reikia viena vidini IP, prikabinti prie vieno išorinio IP.
>
> darom taip:
>
> /sbin/iptables -t nat -A PREROUTING -i eth2 -d isorinis_ip -j DNAT --to
> vidinis_ip
>
> /sbin/iptables -t nat -A POSTROUTING -o eth2 -s vidinis_ip -j SNAT
> --to-source isorinis_ip
>
> /sbin/iptables -A FORWARD -i eth2 -d vidinis_ip -j ACCEPT
>
> viskas ?
>
> ar dar reikia kokio nors
>
> iptables -t filter -A FORWARD -o eth2 -s vidinis_ip -j ACCEPT
nepakenks :)