LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-14-2011, 01:39 AM   #1
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Rep: Reputation: 15
Iptables + squid + dansguardian problem


Dear LINUX GURUS,

is this possible on 2 Linux boxes will act as a INTERNET Firewall + Filtering:

1st PC = CENTOS 5.5
functions as a firewall using iptables with two NICS 1=ETH0 connected to internet with a public ip and 1=ETH1 with ip address of 10.0.0.1 connected to the 2nd PC Centos 5.5 with squid/dansguardian with ip address of 10.0.0.2


2nd PC = Centos 5.5
functions as a squid + dansguardian internet filtering with 2 NICS 1=ETH0 with ip address of 10.0.0.2 connected to the ETH1 of the 1st PC with ip address of 10.0.0.1 and 2nd ETH1=connected to LAN (172.16.1.0/24)

does this make sense?

this might be confusing but I just want to try this, to protect incoming ssh from our previous Sys admins who intended to enter the LAN 172.16.1.0/24 network. And also to confuse them that they have to pass through 10.0.0.1 - 2.

Last edited by struggled_newbie; 01-14-2011 at 01:42 AM.
 
Old 01-18-2011, 09:00 PM   #2
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
help

Quote:
Originally Posted by struggled_newbie View Post
Dear LINUX GURUS,

is this possible on 2 Linux boxes will act as a INTERNET Firewall + Filtering:

1st PC = CENTOS 5.5
functions as a firewall using iptables with two NICS 1=ETH0 connected to internet with a public ip and 1=ETH1 with ip address of 10.0.0.1 connected to the 2nd PC Centos 5.5 with squid/dansguardian with ip address of 10.0.0.2


2nd PC = Centos 5.5
functions as a squid + dansguardian internet filtering with 2 NICS 1=ETH0 with ip address of 10.0.0.2 connected to the ETH1 of the 1st PC with ip address of 10.0.0.1 and 2nd ETH1=connected to LAN (172.16.1.0/24)

does this make sense?

this might be confusing but I just want to try this, to protect incoming ssh from our previous Sys admins who intended to enter the LAN 172.16.1.0/24 network. And also to confuse them that they have to pass through 10.0.0.1 - 2.
 
Old 01-18-2011, 10:45 PM   #3
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, Kali Linux, Raspbian
Posts: 166

Rep: Reputation: 10
What I understand is, Your previous sysadmin can access ssh from the internet. and you want to prevent him to access your internal network.

If you don't want to access ssh from internet create iptables rule that deny access on your first PC :

#iptables -t INPUT -i eth0 -p tcp --dport 22 -j DROP.

You can also use knockd service to access ssh from internet.
 
Old 01-19-2011, 12:46 AM   #4
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kaushalpatel1982 View Post
What I understand is, Your previous sysadmin can access ssh from the internet. and you want to prevent him to access your internal network.

If you don't want to access ssh from internet create iptables rule that deny access on your first PC :

#iptables -t INPUT -i eth0 -p tcp --dport 22 -j DROP.

You can also use knockd service to access ssh from internet.
but does this example possible? I mean is this applicable:



INTERNET (120.80.13.69) 2nd NIC (10.0.0.1) SQUID (10.0.0.2) LAN(172.16.1.1)
ETH0 -----------------> ETH1 ----------------> ETH0 -----------> ETH1

Last edited by struggled_newbie; 01-19-2011 at 12:53 AM.
 
  


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, SQUID, DANSGUARDIAN and Transparent Proxy metallica1973 Linux - Networking 18 09-03-2007 07:17 PM
iptables dansguardian and squid - dropping URL jlw253 Linux - Security 5 07-22-2007 03:29 PM
iptables -> squid -> dansguardian (same box) knichel Linux - Security 1 05-14-2007 01:16 PM
Problem using Squid, Dansguardian and IPtables as web filtering! cryonics Linux - Networking 7 05-09-2006 01:00 PM
iptables, DansGuardian, and Squid. cth3 Linux - Networking 1 02-10-2005 09:04 AM

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

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