Problem s iptables

3 отговора 157 прегледа
#1

Problem s iptables

Zdraveite...

Imam edin vypros kym vas:
Imam localna mreja i Linux-server, igraesht roliata na firewall...
Kak da nakaram Linux-a kato poluchi paket na port 2000 (napr.) otvyn da go preprati na niakoi computer ot localnata mreja na port 80 i otgovoryt ot localnata mashina da go prati obratno na vynshinia komputer?

Thanks

Отговор
в отговор на Dorkas #2

Re: Problem s iptables

Zavisi s koi kernel si ako si s 2.2 bachkash s ipmasqadm
ako si s 2.4 s iptables ne e tolkowa trudno vij na FAQ na iptables

Отговор
в отговор на Dorkas #3

Re: Problem s iptables

man 5 ipnat

Uspeh

Отговор
в отговор на Dorkas #4

Re: Problem s iptables

iptables -t nat -A PREROUTING -i ppp0 -sport 2000 [или устройството ти за връзка с Internet] -d xxx.xxx.xxx.xxx [IP адреса на Linux компютъра] -dport 80 -j DNAT --to xxx.xxx.xxx.xxx [адреса на вътрешната ти машина]

И въобще RTFM !

Отговор