Skip to contentSkip to conversation

dhcp windows client port

DISCUSSION Gabriel 4 participants 4 messages Nov 12, 2005 – Nov 13, 2005

lore
Share & tools
lore

Gabriel

author
#0 lore raw
Quoted 3 lines · P theodorou

Hello

i wish the windows machine which receives Internet from

the firewall pc

Quoted 1 line

to be restricted fully apart from the port needed to

access the internet

Quoted 2 lines

the windows machine has got fully access when my

rc.firewall contains

Quoted 8 lines

$iptables -A FORWARD -i $LAN_IFACE -j ACCEPT

which gives to the windows machine access to every port

i've tried unsuccesully the following command

$iptables -A FORWARD -p TCP -i $LAN_IFACE -- sport XX -j

ACCEPT

Quoted 2 lines

my netstat on the windows machine displays various

connections

Quoted 4 lines

few questions now

1 which port should be alolwed for the windows machine to

see internet

Quoted 2 lines

2 can i restrct it to something like :
$iptables -A FORWARD -p TCP -i $LAN_IFACE -sport XX

-dport XX -j

Quoted 3 lines

ACCEPT

in other words, allow the windows relevant port for

accesing on the

Quoted 8 lines

internet to
be connected to the specific port of the firewall

regards

You could adopt a strategy where you allow all connections started from
the inside of your LAN (and, of course, all connections related to those),
but none that is started from the internet. So, you could set the FORWARD
policy to DROP, allow the IPs from inside the LAN to connect to the
internet and then use a rule that allows all ESTABLISHED and RELATED
connections.

Signature · 7 lines
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
#1 lore raw

Hello again

Anybody knows where can i find scripts with very restricted policies ?

If someone could suggest some would be very appreciated

google replies mostly basic ones

regards

Quoted 72 lines

From: Gabriel <[email protected]>
To: [email protected]
Subject: Re: dhcp windows client port
Date: Sat, 12 Nov 2005 13:25:09 -0800 (PST)

Quoted 3 lines · P theodorou

Hello

i wish the windows machine which receives Internet from

the firewall pc

Quoted 1 line

to be restricted fully apart from the port needed to

access the internet

Quoted 2 lines

the windows machine has got fully access when my

rc.firewall contains

Quoted 8 lines

$iptables -A FORWARD -i $LAN_IFACE -j ACCEPT

which gives to the windows machine access to every port

i've tried unsuccesully the following command

$iptables -A FORWARD -p TCP -i $LAN_IFACE -- sport XX -j

ACCEPT

Quoted 2 lines

my netstat on the windows machine displays various

connections

Quoted 4 lines

few questions now

1 which port should be alolwed for the windows machine to

see internet

Quoted 2 lines

2 can i restrct it to something like :
$iptables -A FORWARD -p TCP -i $LAN_IFACE -sport XX

-dport XX -j

Quoted 3 lines

ACCEPT

in other words, allow the windows relevant port for

accesing on the

Quoted 8 lines

internet to
be connected to the specific port of the firewall

regards

You could adopt a strategy where you allow all connections started from
the inside of your LAN (and, of course, all connections related to those),
but none that is started from the internet. So, you could set the FORWARD
policy to DROP, allow the IPs from inside the LAN to connect to the
internet and then use a rule that allows all ESTABLISHED and RELATED
connections.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

#2 lore raw
Quoted 7 lines · P theodorou

Hello again

Anybody knows where can i find scripts with very restricted policies ?

If someone could suggest some would be very appreciated

google replies mostly basic ones

Try http://www.shorewall.net -- you can make the Shorewall-generated ruleset as restrictive as you wish.

-Tom

Signature · 4 lines
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [email protected]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key
#3 lore raw

Re: dhcp windows client port (nfcan: addressed to exclusive sender for this address)

In reply to P theodorou
Quoted 4 lines · On 2005.11.12 18:27, P theodorou - [email protected] wrote:

Hello again

Anybody knows where can i find scripts with very restricted policies ? If someone could suggest some would be very appreciated

You can not have a more restrictive filter rule set than the one Rob Sterenborg already gave you.

Your original statement:

Quoted 3 lines
Quoted 3 lines

I wish the windows machine which receives Internet from the firewall pc to be restricted fully apart from the port needed to access the internet.

is ambiguous, because "the internet" is *everything*, but you did use the singular, "the port".

So I am responding to what I think you
might be trying to accomplish.

My guess is you mean something more like "the web".

I think you mean that you want
to restrict the pc to just "web browsing".

If this guess is correct, then
what you need to understand is that this
is not really a job that a firewall can do.

A firewall can restrict the pc to access
just tcp port 80, but that does not really
restrict what kind of traffic can flow.

My guess is that making the pc use
a proxy web server may do what you want.

For Linux, you could look at squid:

http://www.squid-cache.org/

I hope that helps.

Signature · 4 lines
Jim Laurino
[email protected]
Please reply to the list.
Only mail from the listserver reaches this address.