Add these line in existing firewall Or run a Script

General discussion about PLUC and Linux in Pakistan.
najeeb
Cadet
Posts: 1
Joined: Mon Jun 19, 2006 5:41 pm
Location: pakistan
Contact:

Add these line in existing firewall Or run a Script

Postby najeeb » Fri Jun 23, 2006 11:11 pm

Internet Cable Network ( Selected Mac allow)

Firstly i want to drop all traffic afterthat i want to allow ip one by one.
Guide me i enter these line in existing Firewall or run in a script.

Drop All Traffice.

iptables -A INPUT -s 0/0 -j REJECT

-------------------------------------------------------------

Allow one by one all mac.

iptables -A INPUT -i eth0 -s 192.168.143.25 -m mac --mac-source
00-08-C7-39-CA-47 -j ACCEPT


Najeeb Ahmed
i am najeeb. want ot learn advace linux

nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Re: Add these line in existing firewall Or run a Script

Postby nomankhn » Sat Jun 24, 2006 12:26 pm



Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest