Linux / UNIX Tech Support Forum
This is a discussion on squid iptable problem within the Proxy Servers forums, part of the Mastering Servers category; recently i implemented squid server on centos5.2.This server directly connected to public IP i.e 200.227.56.131 on eth1 and my private ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Proxy Servers Discussion about UNIX / Linux caching proxy servers, web proxy, reverse / content filtering proxy server. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
recently i implemented squid server on centos5.2.This server directly connected to public IP i.e 200.227.56.131 on eth1 and my private ip 10.171.200.11 connected on eth0.when i see /var/log/messages so many IPs try to login on server error showing access denied,i written iptables below is the iptable script:
############################################# iptables -P INPUT DROP iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP iptables -F -t nat iptables -F -t mangle iptables -F -t filter iptables -X echo 1 > /proc/sys/net/ipv4/ip_forward # LOOPBACK iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT # PUBLIC INTERFACES iptables -A OUTPUT -o eth0 -j ACCEPT iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT # PRIVATE INTERFACES iptables -A INPUT -i eth1 -s 10.171.200.11/24 -j ACCEPT iptables -A OUTPUT -o eth1 -d 0/0 -j ACCEPT ################################################## # to this script no one connecting proxy server but Internet web pages not opening at client end. can anyone have iptable script where i can implement on my network. help in this regards will be highly appreciated. |
| Sponsored Links | ||
|
|
|
||||
|
Login denied message may be coming from ssh service. Try binding ssh service to private eth0 private ip by updating /etc/ssh/sshd_config and adding / updating ListenAddress:
Code:
ListenAddress 10.171.200.11 Code:
service sshd restart
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 05-13-2009 at 04:58 PM. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make iptable rules? | saroj | Networking, Firewalls and Security | 7 | 03-11-2009 06:18 PM |
| Squid Transparent Proxy iptable rules | Cyborg_sa | CentOS / RHEL / Fedora | 1 | 02-28-2009 09:30 PM |
| Squid Problem | B!n@ry | Linux software | 3 | 04-15-2007 03:36 PM |
| problem with Squid | puppen | Linux software | 4 | 01-04-2007 02:45 PM |
| Problem with squid | LRC | Linux software | 17 | 06-10-2006 07:52 PM |