LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   dansgurdian configuration with centOS 6.4 (https://www.linuxquestions.org/questions/linux-server-73/dansgurdian-configuration-with-centos-6-4-a-4175514783/)

ganesh24pal@gmail.com 08-14-2014 03:38 AM

dansgurdian configuration with centOS 6.4
 
Hi Team,

1) I have installed CentOS 6.4 and configured Squid3 Internet proxy with NTLM authentication (Active Directory configuration)+ dansguardian-2.12.0.3 .

2) Internet Proxy is worked, but i want it should work through Dansgurdian, but it did not work.

================================Refer Link-
http://en.linuxkitchen.com/2013/09/0...id-redirector/


iptables -t nat -A OUTPUT -p tcp –dport 80 -m owner –uid-owner squid -j ACCEPT
iptables -t nat -A OUTPUT -p tcp –dport 8080 -m owner –uid-owner squid -j ACCEPT
iptables -t nat -A OUTPUT -p tcp –dport 80 -j REDIRECT –to-ports 8080
iptables -t nat -A OUTPUT -p tcp –dport 8080 -j REDIRECT –to-ports 8080


================Error============

When i am adding above firewall rule its giving error.


#####Dansgurgian output####
# You can have the same IP twice so long as it has a different port.
filterip = 10.211.1.100

# the ports that DansGuardian listens to. Specify one line per filterip
# line. You can specify different authentication mechanisms per port but
# only if the mechanisms can co-exist (e.g. basic/proxy auth can't)
filterports = 8080
#filterpoots = 9999
#filterports = 8081

# the ip of the proxy (default is the loopback - i.e. this server)
proxyip = 127.0.0.1
#proxyip = 10.211.1.100
========================

ganesh24pal@gmail.com 08-14-2014 04:28 AM

#iptables -t nat -A OUTPUT -p tcp –dport 80 -m owner –uid-owner squid -j ACCEPT
Bad argument `–dport'
Try `iptables -h' or 'iptables --help' for more information.

==========================

I am unable to forward port.

TB0ne 08-15-2014 11:31 AM

Quote:

Originally Posted by ganesh24pal@gmail.com (Post 5220889)
#iptables -t nat -A OUTPUT -p tcp –dport 80 -m owner –uid-owner squid -j ACCEPT
Bad argument `–dport'
Try `iptables -h' or 'iptables --help' for more information.

I am unable to forward port.

So did you do as it told you, and see the help???? Assuming, also, that you are putting two dashes before dport, right?? Tried it without specifying the table name?


All times are GMT -5. The time now is 02:48 PM.