Hot Downloads

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: dansguardian, squid and iptables

dansguardian, squid and iptables 10 years 11 months ago #12042

  • monsky
  • monsky's Avatar
  • Offline
  • Distinguished Member
  • Posts: 177
  • Karma: 0
hello there, what should be the syntax in iptables if i have dansguardian and squid? ive been figuring this out for how many days now and everytime i did redirecting the port 3128 (port of squid) to port 8080 (dansguard) i could not browse the internet. with the port 3128 all works fine. but when i redirect the 3128 to 8080 i couldnt browse the internet. eth0 in the internal network and eth1 to the internet. :(
can somebody give me the idea how to fix this?

thnx again in advance
The administrator has disabled public write access.

Re: dansguardian, squid and iptables 10 years 11 months ago #12045

  • DaLight
  • DaLight's Avatar
  • Offline
  • Honored Member
  • Posts: 1302
  • Karma: 1
Did you use the following command?

[code:1]iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3128 -j REDIRECT --to-port 8080[/code:1]

Let us know if it works.
The administrator has disabled public write access.

Re: dansguardian, squid and iptables 10 years 11 months ago #12100

  • monsky
  • monsky's Avatar
  • Offline
  • Distinguished Member
  • Posts: 177
  • Karma: 0
thnx Dalight,

yes i did what you had suggested. but was it right that i first redirect the port 80 to 3128 (squid) then redirecting the 3128 to 8080 (dansguardian) ?

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3128 -j REDIRECT --to-port 8080
The administrator has disabled public write access.

Re: dansguardian, squid and iptables 10 years 11 months ago #12101

  • DaLight
  • DaLight's Avatar
  • Offline
  • Honored Member
  • Posts: 1302
  • Karma: 1
No just use the line I gave you and set the Proxy to Transparent mode.
The administrator has disabled public write access.

Re: dansguardian, squid and iptables 10 years 11 months ago #12192

  • monsky
  • monsky's Avatar
  • Offline
  • Distinguished Member
  • Posts: 177
  • Karma: 0
tnx DaLight. problem solved.
The administrator has disabled public write access.

Re: dansguardian, squid and iptables 10 years 11 months ago #12202

  • DaLight
  • DaLight's Avatar
  • Offline
  • Honored Member
  • Posts: 1302
  • Karma: 1
Excellent! How do you find DansGuardian as a content filter?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.078 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup