March 29, 2024, 03:32:46 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: wanna append a rule using iptables  (Read 3168 times)

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
wanna append a rule using iptables
« on: October 19, 2006, 02:57:15 PM »
hi linux grp......

i want to append a rule using  IPTABLES ....
"only the specific IP is required to be used with the specified MAC address"
even if any one try to use the  ip from diff MAC ..he would not access ....

thanking u...........


laxmaN

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
wanna append a rule using iptables
« Reply #1 on: October 19, 2006, 05:06:17 PM »
You can either make rule for a specific mac address or can make rules for specific IP.

But you can't force that particular MAC should be used only with a specific IP.
Ya you can do that with DHCP ie. assigning desired IP to a particular MAC.

eg.
If you want to drop all request from a MAC address then you do following
Code: [Select]
iptables -A INPUT --mac-source 00:0B:DB:45:56:42 -j DROP

Offline klakshman03

  • Tux Awared
  • **
  • Posts: 35
wanna append a rule using iptables
« Reply #2 on: October 20, 2006, 08:44:34 AM »
tq.....