LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2005, 04:28 AM   #1
alvi2
Member
 
Registered: Feb 2005
Posts: 77

Rep: Reputation: 15
Question which is better


i have two questions to ask

1) i am using dsl
the router dns is 10.x.x.x
and
isp dns is 203.x.x.x

for masquareding client need dns entry
now tell me which entry is better
for router dns entry or isp dns entry .

mean which provide better speed

from my point of view isp dns is better because router dns first convert 10.x.x.x to 203.x.x.x and then send dns query to isp. am i right ?

2) i want to to accept some mac addres from my clients on input chain as

iptables - A INPUT -m mac --mac-source x.x.x.x.x -j Accept
---------------------------- ----
-----

now i want to drop all others clients mac how can i do that
 
Old 08-22-2005, 10:11 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
1-
i think that it wont matter.

2-
iptables -F INPUT
iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m mac --mac-source x.x.x.x.x -j ACCEPT

good luck.

Last edited by maxut; 08-24-2005 at 05:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration