Networking Forums

Networking Forums > Computer Networking > Linux Networking > Restricting access to particular port

Reply
Thread Tools Display Modes

Restricting access to particular port

 
 
Anindra
Guest
Posts: n/a

 
      01-10-2004, 10:26 AM
I have a Pentium-4 based PC with 2 NICs. One NIC(IP 192.168.2.2) is
connected to the ISDN dial-up router and the other(IP 192.168.0.100)
is connected to the internal LAN. Users are given internet access
through this PC only. For Internet sharing, it is running SQUID and
for Content Filtering DANSGUARDIAN. The browsers on the client
computers are directed to IP 192.168.0.100 and Port 8000. DansGuardian
is listening on this port. Squid is listening on Port 3128. So user
requests are going out through dansguardian->squid->ISDN Router. But
if any user changes the port from 8000 to 3128 on a client machine
then that machine bypasses the dansguardian. So how do I restrict Port
3128 to be accessed only by dansguardian running on localhost and not
by any client machine's browser?
 
Reply With Quote
 
 
 
 
Till Bargheer
Guest
Posts: n/a

 
      01-10-2004, 10:45 AM
Anindra wrote:

> I have a Pentium-4 based PC with 2 NICs. One NIC(IP 192.168.2.2) is
> connected to the ISDN dial-up router and the other(IP 192.168.0.100)
> is connected to the internal LAN. Users are given internet access
> through this PC only. For Internet sharing, it is running SQUID and
> for Content Filtering DANSGUARDIAN. The browsers on the client
> computers are directed to IP 192.168.0.100 and Port 8000. DansGuardian
> is listening on this port. Squid is listening on Port 3128. So user
> requests are going out through dansguardian->squid->ISDN Router. But
> if any user changes the port from 8000 to 3128 on a client machine
> then that machine bypasses the dansguardian. So how do I restrict Port
> 3128 to be accessed only by dansguardian running on localhost and not
> by any client machine's browser?


Use the very mighty kernel-feature "iptables" - probably your kernel has
this ability. Search: "iptables & Documentation"!
Till
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      01-10-2004, 02:14 PM
Anindra <(E-Mail Removed)> wrote:
[..]
> through this PC only. For Internet sharing, it is running SQUID and
> for Content Filtering DANSGUARDIAN. The browsers on the client
> computers are directed to IP 192.168.0.100 and Port 8000. DansGuardian
> is listening on this port. Squid is listening on Port 3128. So user
> requests are going out through dansguardian->squid->ISDN Router. But
> if any user changes the port from 8000 to 3128 on a client machine
> then that machine bypasses the dansguardian. So how do I restrict Port
> 3128 to be accessed only by dansguardian running on localhost and not
> by any client machine's browser?


Tag Name http_port
Usage

http_port port
hostname: port
1.2.3.4 : port

Description
This tag name is used to specify the socket addresses where Squid
will listen for HTTP client requests. Multiple socket addresses
can be specified. There are three forms: port alone, hostname
with port, and IP address with port. If hostname or IP address is
specified, then Squid binds the socket to that specific address.
[..]

Change in squid.conf http_port an restart squid.

http_port 127.0.0.1:3128

Wonder if you tried looking at the squid docs before posting?

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
 
Anindra
Guest
Posts: n/a

 
      01-12-2004, 05:39 AM
Till Bargheer <(E-Mail Removed)> wrote in message news:<btoo9d$jeq$00$(E-Mail Removed)>...
> Anindra wrote:
>
> > I have a Pentium-4 based PC with 2 NICs. One NIC(IP 192.168.2.2) is
> > connected to the ISDN dial-up router and the other(IP 192.168.0.100)
> > is connected to the internal LAN. Users are given internet access
> > through this PC only. For Internet sharing, it is running SQUID and
> > for Content Filtering DANSGUARDIAN. The browsers on the client
> > computers are directed to IP 192.168.0.100 and Port 8000. DansGuardian
> > is listening on this port. Squid is listening on Port 3128. So user
> > requests are going out through dansguardian->squid->ISDN Router. But
> > if any user changes the port from 8000 to 3128 on a client machine
> > then that machine bypasses the dansguardian. So how do I restrict Port
> > 3128 to be accessed only by dansguardian running on localhost and not
> > by any client machine's browser?

>
> Use the very mighty kernel-feature "iptables" - probably your kernel has
> this ability. Search: "iptables & Documentation"!
> Till


Could you elaborate on this a little pls. I have tried my hands on
this but without success. I'm using RHL9.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
restricting access Bob Wireless Networks 0 03-26-2006 10:43 PM
Restricting VPN Connections to RDC Port 3389 Matt Windows Networking 2 06-24-2005 01:37 PM
Restricting Internet Access David Ray Windows Networking 7 02-01-2005 06:04 AM
Restricting router access simon Broadband 23 12-05-2004 11:49 AM
Restricting web access JuanP Windows Networking 1 04-08-2004 05:47 PM



1 2 3 4 5 6 7 8 9 10 11