Ipables

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Does anyone have a sample iptable script they would be willing to post . Specifically one for a laptop i.e no static addresses.
I have been visiting http://www.linuxguruz.com/iptables/ and also have few okay books but I dont seem to be able to put a satisfactory script together.
 

mrweirdo

Senior member
Dec 1, 2002
706
0
0
what are you looking to do with a script ? You can make many different kinds of scripts that do different things ;)
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Originally posted by: mrweirdo
what are you looking to do with a script ? You can make many different kinds of scripts that do different things ;)

I want my laptop to be tight as a drum. I guess it need to ACCEPT dns/dhcp and drop all other INCOMING, except for a few ports needed for file sharing 4762:tcp 4772:udp.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: n0cmonkey
Tight as a drum? How tight are drums?

#!/bin/bash
ifconfig eth0 down

Think oil drums. No movement in or out. Water, oil, chemicals, air, nothing.