Senario :
Nak allow port 80 dan proxy pada port 3128
mac address = 09:0A:EF:91:04:05
eth1 = LAN Interface
ip LAN = 192.168.100.0/24
DROP dulu semua chain INPUT
iptables -P INPUT DROP
Buka chain OUTPUT
iptables -P OUTPUT ACCEPT
DROP connection ke port 80 dan 3128
iptables -A INPUT -p tcp -i eth1 -s 192.168.100.0/24 -d 0/0 --dport 80 -j DROP
iptables -A INPUT -p tcp -i eth1 -s 192.168.100.0/24 -d 0/0 --dport 3128 -j DROP
masukkan rule
iptables -A INPUT -p tcp -i eth1 --destination-port 80 -m mac --mac-source 00:0A:EF:91:04:05 -j ACCEPT
iptables -A INPUT -p tcp -i eth1 --destination-port 3128 -m mac --mac-source 00:0A:EF:91:04:05 -j ACCEPT
ok itu saja.. lakukan untuk mac address lain
Windows and linux information and one stop centre for myself. Having difficulties to remember all things at once. This blog will remain be my references on the internet. Other people can take benefit from it. Thank you for visiting
Saturday, August 18, 2007
Subscribe to:
Posts (Atom)
Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...
-
Make your own OpenAi chat I am totally new comer in Python trying to learn this language from scratch. Knowing a basic of python language i...
-
Always getting some gpg error while trying to do aptitude update on older version of debian platform such as etch or lenny. The message look...
-
i found this registry tweak for dns cache in windows xp but don't really know it works or not... give a try edit your registry or put in...