On Mon, 23 Dec 2002, Babesong wrote:
> #!/bin/sh
>
> /sbin/modprobe ip_tables
> /sbin/modprobe ip_conntrack
> /sbin/modprobe iptable_nat
> /sbin/modprobe ip_nat_ftp
> /sbin/modprobe ip_conntrack_ftp
> /sbin/modprobe ip_conntrack_irc
> /sbin/modprobe ipt_state
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables --flush
> iptables --table nat --flush
> iptables --delete-chain
> iptables --table nat --delete-chain
> iptables --table nat --append POSTROUTING
> --out-interface eth1 -j MASQUERADE
> iptables --append FORWARD --in-interface eth0 -j
> ACCEPT
> iptables -A INPUT -i lo -p all -j ACCEPT
> iptables -A OUTPUT -o lo -p all -j ACCEPT
> iptables -A INPUT -i eth1 -m state --state
> ESTABLISHED,RELATED -j ACCEPT
> iptables -A INPUT -p tcp -i eth1 --dport 21 -j ACCEPT
> #iptables -A INPUT -p udp -i eth1 --dport 21 -j ACCEPT
> iptables -A INPUT -p tcp -i eth1 --dport 22 -j ACCEPT
> #iptables -A INPUT -p udp -i eth1 --dport 22 -j ACCEPT
> iptables -A INPUT -p tcp -i eth1 --dport 80 -j ACCEPT
> #iptables -A INPUT -p udp -i eth1 --dport 80 -j ACCEPT
> iptables -A INPUT -p tcp -i eth1 --dport 25 -j ACCEPT
> #iptables -A INPUT -p udp -i eth1 --dport 25 -j ACCEPT
> iptables -A INPUT -p tcp -i eth1 --dport 110 -j ACCEPT
> #iptables -A INPUT -p udp -i eth1 --dport 110 -j ACCEPT
> iptables -A INPUT -p tcp -i eth1 --dport 20 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
>
> Segala sesuatunya sudah OK hingga suatu saat waktu gue
> mau download ANtiVirus ke FTP Server dengan meminta
> username dan password....eh ternyata nggak bisa :-(
> Gue kecewa sebenarnya trus gue utak-atik tetep nggak
> bisa juga...huaaa....
> Ceritanya...gue pake Squid dengan User Authentikasi
> dan Transparency Proxy dan sudah OK....Pas gue jalanin
> itu FTP Server muncul Error Message :
>
> Access Denied.
> Access control configuration prevents your request
> from being allowed at this time. Please contact your
> service provider if you feel this is incorrect.
>
> Ada nyang bisa banttu, nggak ? Please, help me up...
thx
.dave
Psychoanalysis is that mental illness for which it regards itself a therapy.
-- Karl Kraus
Psychiatry is the care of the id by the odd.
Show me a sane man and I will cure him for you.
-- C.G. Jung
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Dapatkan FAQ milis dg mengirim email kosong ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3