Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed RH9 with Squid and Apache working on the same machine with 2 lan cards
I have genrated belowmentioned iptable with the help of webmin
The only problem it has is it does not allow me to ftp / ping outside.
Please check the Rules and Help me if you can with the same
# Generated by iptables-save v1.2.7a on Thu Aug 21 12:19:06 2003
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth1 -j MASQUERADE
# Squid Redirect
-A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
#COMMIT
# Completed on Thu Aug 21 12:19:06 2003
# Generated by iptables-save v1.2.7a on Thu Aug 21 12:19:06 2003
#*mangle
#:PREROUTING ACCEPT [11:1719]
#:INPUT ACCEPT [11:1719]
#:FORWARD ACCEPT [0:0]
#:OUTPUT ACCEPT [10:800]
#:POSTROUTING ACCEPT [10:800]
#COMMIT
# Completed on Thu Aug 21 12:19:06 2003
# Generated by iptables-save v1.2.7a on Thu Aug 21 12:19:06 2003
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
# Accept traffic from internal interfaces
-A INPUT ! -i eth1 -j ACCEPT
# Accept traffic with the ACK flag set
-A INPUT -p tcp -m tcp --tcp-flags ACK ACK -j ACCEPT
# Allow incoming data that is part of a connection we established
-A INPUT -m state --state ESTABLISHED -j ACCEPT
# Allow data that is related to existing connections
-A INPUT -m state --state RELATED -j ACCEPT
# Accept responses to DNS queries
-A INPUT -p udp -m udp --dport 1024:65535 --sport 53 -j ACCEPT
# Accept responses to our pings
-A INPUT -p icmp -m icmp --icmp-type echo-reply -j ACCEPT
# Accept notifications of unreachable hosts
-A INPUT -p icmp -m icmp --icmp-type destination-unreachable -j ACCEPT
# Accept notifications to reduce sending speed
-A INPUT -p icmp -m icmp --icmp-type source-quench -j ACCEPT
# Accept notifications of lost packets
-A INPUT -p icmp -m icmp --icmp-type time-exceeded -j ACCEPT
# Accept notifications of protocol problems
-A INPUT -p icmp -m icmp --icmp-type parameter-problem -j ACCEPT
# HTTP ACCESS
-A INPUT -p tcp -m tcp -i eth1 --dport 80 -j ACCEPT
COMMIT
# Completed on Thu Aug 21 12:19:06 2003
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.