LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2003, 02:11 PM   #1
depaul
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
Question iptables again help


i have these rules in /etc/sysconfig/iptables
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --syn -j REJECT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT
-A RH-Lokkit-0-50-INPUT -j ACCEPT -m mac --mac-source 00:00:E2:42:21:BA -p tcp --dport 110
-A RH-Lokkit-0-50-INPUT -j ACCEPT -m mac --mac-source 00:00:E2:42:21:BA -p udp --dport 110
the first two lines are blocking my mac sources lines
does anyone know what is the problem and suggestion are welcome.....

Last edited by depaul; 07-10-2003 at 02:56 PM.
 
Old 07-10-2003, 05:15 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Iptables executes its rules in order, so if you move the first two lines to after the second two, the traffic headed for port 110 from that mac address will be accepted.
 
Old 07-11-2003, 12:08 PM   #3
depaul
Member
 
Registered: Jul 2003
Posts: 88

Original Poster
Rep: Reputation: 15
i tried it ... not working...
 
Old 07-11-2003, 12:29 PM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
Check out the syntax rules at http://www.netfilter.org and then rewrite the file. The Redhat lokkit program makes iptables rules harder than they need to be. I would also suggest the book "Redhat Linux Firewalls". It made Iptables make sense and is well worth owning..
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:15 PM.

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