Nameserver se topiko diktyo
Kefalas Apostolos
apollo at hellug.gr
Thu Aug 26 15:23:44 EEST 2004
> ---------------------
> #!/bin/sh
>
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -F -t nat
> iptables -A POSTROUTING -t nat -o ppp0 -j MASQUERADE
> ----------------------
Υπο8έτω οτι το default policy των iptables είναι ACCEPT.
Εγώ χρησιμοποιώ αυτό:
echo 1 > /proc/sys/net/ipv4/ip_forward
#
iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
#
# For the Internet
#
iptables -A FORWARD -i ppp0 -o eth0 -m state --state ESTABLISHED,RELATED -j
ACCEPT
iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT
iptables -A FORWARD -j LOG
#
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
και παίζει μια χαρά.
____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.
More information about the Linux-greek-users
mailing list