LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2010, 09:46 AM   #16
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,505
Blog Entries: 35

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383

After reviewing that file I believe that your new version of iptables is located in...
Code:
/usr/local/sbin/iptables
Run that command to see what version pops out.

Also, you remove iptables from debian with the following command run as root.
Code:
apt-get remove iptables
apt-get autoremove
Remember to review all packages which are being removed so that you do not accidentally get rid of packages your system may need.

If you find out that your iptables does in fact live in the location I specified above then we'll work from there...

SAM
 
Old 07-20-2010, 04:18 PM   #17
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 126

Original Poster
Rep: Reputation: 16
Hi Sam,

You are correct, v1.4.6 does live in that directory.

I've ran the apt-get commands and it only listed the one package "iptables" to be removed. Once removed I ran the autoremove which showed 0 upgraded, 0 newly installed, 0 to remove, and 20 not upgraded.

I guess with the iptables, I would just create a link to the directory /usr/local/sbin/iptables?

As always, thanks for your help!!

Thanks
Anubis.
 
Old 07-20-2010, 06:30 PM   #18
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,505
Blog Entries: 35

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Actually there's an easier way. You can soft link to the executables to /sbin/*. Here's the commands of how to do it, run them as root.
Code:
ln -s /usr/local/sbin/iptables-save /sbin/
ln -s /usr/local/sbin/iptables /sbin/
ln -s /usr/local/sbin/iptables-restore /sbin/
ln -s /usr/local/sbin/iptables-multi /sbin/
Now you have your /sbin/iptables command so you don't have to change any scripts. Now it doesn't matter whether a program refers to /sbin/iptables or /usr/local/sbin/iptables. They're the same executable.

Last edited by sag47; 07-20-2010 at 06:33 PM.
 
Old 07-20-2010, 06:40 PM   #19
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 126

Original Poster
Rep: Reputation: 16
Hi Sam,

Thanks for that; it's all been linked and is working well.

You've been an extremly big help and many thanks for that. I have another question I am going to post in another thread (because it's not directly related to iptables/imq) that you may probably be able to help with; but for this question; thanking you very, very much again.

Thanks
Anubis.
 
Old 07-20-2010, 06:47 PM   #20
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,505
Blog Entries: 35

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
Ok post here with a link to it so I know when you ask it. Otherwise I may not see your question.
 
Old 07-20-2010, 07:09 PM   #21
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 126

Original Poster
Rep: Reputation: 16
Hi Sam:

Link is here:
http://www.linuxquestions.org/questi...64#post4040064

Thanks again.
Anubis
 
  


Reply

Tags
imq, iptables, patch, perl


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: iptables + imq not work duyuyang Linux - Networking 1 12-06-2008 02:42 AM
Patch iptables with imq support in Ubuntu nw504 Linux - Networking 0 03-21-2007 06:24 AM
Patching IPTABLES ?? Need Help?? Sevensins Linux - Security 2 09-06-2005 05:53 AM
help with imq device and iptables debloxie Linux - Networking 2 03-28-2004 08:08 AM
pls help!!! iptables patch for IMQ device target debloxie Linux - Networking 0 03-03-2004 06:16 AM


All times are GMT -5. The time now is 06:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration