IPCHAINS -> IPTABLES

Dimitris Papadiotis dimitrip at franco.gr
Thu Nov 15 11:19:01 EET 2001


Des to parakato paradigma (oti request erxete sto eth0 – port 80 ginete
redirect sto ip 192.0.0.1 – port 8080). Se RH7.1 gia na energopiisis
iptables prepi :
1) Na kanis compile sto kernel ipostiriksi gia iptables (kane menuconfig kai
epelekse sto Networking -> Network Packet Filtering kai IP: Netfilter
Configuration)
2) Apenergopiise to ipchains  kai energipiise to iptables support( gia
efkolia xrisimopiise to /usr/sbin/ntsysv). Den mporis na exis taftoxrona
ipostiriksi gia ipchains & iptables.


/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 \
         -j DNAT --to 192.0.0.1:8080


Regards,
Dimitris Papadiotis



More information about the Linux-greek-users mailing list