LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2015, 08:47 PM   #1
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Rep: Reputation: Disabled
Bypass Squid + Dans with iptables rule


I have the usual squid & Dansguardian combo, 2 ethernet gatewate mode firewall.

But some sites absolutely will not work thru the goo even with whitelisting like itunes for one.

I need when someone goes on a Windoze box to apple.com it goes directly to the internet.

I thought this would work but does not; I guess I am missing something (tried 80 & 8080)

iptables -A OUTPUT -p tcp -d apple.com --dport 80 -j ACCEPT

To really test it I used a "blocked" site vs. apple.com.

Thanks to all in advance.
 
Old 05-20-2015, 09:07 PM   #2
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
Stupid me

iptables -t nat -I PREROUTING -d apple.com -p tcp --dport 80 -j ACCEPT
 
  


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
Using iptables to bypass squid proxy for a specific domain jcopley Linux - Security 4 05-26-2015 12:38 PM
[SOLVED] iptables rule for making able clients to send and receive emails with squid proxy hamzar.pm Linux - Networking 13 01-06-2012 01:03 AM
iptables rule for ftp and https through squid gr8paki Linux - Networking 1 09-12-2008 08:53 PM
iptables rule to ignore squid proxy server satish Linux - Networking 4 07-02-2008 07:26 AM
Trying to get a quick n dirty Dans Guardian/Squid install for client mattp Linux - Software 48 01-06-2006 11:46 AM

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

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

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