LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2008, 04:16 AM   #1
gr8paki
LQ Newbie
 
Registered: Jun 2006
Posts: 11

Rep: Reputation: 0
iptables rule for ftp and https through squid


Hello,
I want to use ftp and https through squid. what iptables rule i should add for these services.
More over what other services i can use through proxy.

Regards
 
Old 09-12-2008, 08:53 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, this is one of my favourite sites for fw proxy servers. This is where I got the info for my setup...

http://www.linuxhomenetworking.com/

Ch32, squid.
http://www.linuxhomenetworking.com/w...ess_with_Squid

Ch14, iptables.
http://www.linuxhomenetworking.com/w...Using_iptables

Quote:
#---------------------------------------------------------------
# Allow port 80 (www) and 443 (https) connections from the firewall
#---------------------------------------------------------------

iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
-m multiport --dports 80,443 --sport 1024:65535

#---------------------------------------------------------------
# Allow previously established connections
# - Interface eth0 is the internet interface
#---------------------------------------------------------------

iptables -A INPUT -j ACCEPT -m state --state ESTABLISHED,RELATED \
-i eth0 -p tcp

My main machine is off-line right now, so I have no examples to give you,

Hope this helps you though, Glenn

Last edited by GlennsPref; 09-12-2008 at 09:15 PM. Reason: found example
 
  


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
iptables rule to ignore squid proxy server satish Linux - Networking 4 07-02-2008 07:26 AM
Iptables rule for ftp scanning stefaandk Linux - Security 4 02-25-2007 05:19 PM
iptables rule for ftp dcdbutler Linux - Networking 5 10-15-2006 12:12 PM
iptables blocks services (HTTPS and FTP) leosgb Linux - Networking 12 04-11-2006 01:13 PM
squid iptables ftp ----- > problem Ammad Linux - Networking 1 12-25-2005 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:01 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