LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-14-2014, 03:38 AM   #1
ganesh24pal@gmail.com
Member
 
Registered: Jun 2010
Location: Mumbai, India
Distribution: CentOS , Fedora, Open Suse
Posts: 193
Blog Entries: 5

Rep: Reputation: 3
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
========================
 
Old 08-14-2014, 04:28 AM   #2
ganesh24pal@gmail.com
Member
 
Registered: Jun 2010
Location: Mumbai, India
Distribution: CentOS , Fedora, Open Suse
Posts: 193

Original Poster
Blog Entries: 5

Rep: Reputation: 3
#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.
 
Old 08-15-2014, 11:31 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,678

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by ganesh24pal@gmail.com View Post
#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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet configuration on CentOS. avee137 Linux - Newbie 4 05-20-2010 08:53 AM
Squirrelmail Configuration on Centos 5 blackcat9 Linux - Software 3 06-24-2009 03:51 AM
squid transparent proxy + dansgurdian amitk_m Linux - Server 2 06-11-2009 12:58 PM
Wireless configuration with Centos 5 banfir Linux - Laptop and Netbook 1 09-24-2008 01:23 AM
centos install and configuration theoneandonly19 Red Hat 1 06-30-2007 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration