LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-18-2008, 04:41 AM   #1
Linux Fan
LQ Newbie
 
Registered: Jun 2008
Posts: 29

Rep: Reputation: 15
iptables roles inorder


my ip tables change its order so the first role comes to be the last one
I tried to restart this service but nothing changes
so how can I bring it back to the previous order?????

Last edited by Linux Fan; 12-18-2008 at 04:44 AM. Reason: 123
 
Old 12-18-2008, 10:25 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Linux Fan View Post
my ip tables change its order so the first role comes to be the last one
I tried to restart this service but nothing changes
so how can I bring it back to the previous order?????
If restarting the "service" doesn't change anything, then that means you saved the configuration (using something like "service iptables save", for example). So you need to modify the configuration and then save it again. You could write your rules again from scratch, but if you only care about the last rule then just delete it using the "-D" operation, and then insert it into the proper location using the "-I" one. See chapter 9, section 3 of the Frozen Tux Tutorial to read about "-D" and "-I". Or just do a "man iptables".
 
  


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
ACL vs. Roles confusion jcubed Linux - Security 2 07-20-2007 08:12 AM
LXer: Linux thriving in critical roles LXer Syndicated Linux News 0 08-21-2006 01:03 PM
Overclocking inorder to run KDE 3.3 better GnaM SUSE / openSUSE 8 01-04-2005 09:19 AM
ROLES /privilege problem PLZ HELP anirudh Programming 5 10-21-2004 04:07 PM
PHP security, roles, rights logicdisaster Programming 3 06-21-2004 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:30 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