LinuxQuestions.org
Help answer threads with 0 replies.
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-20-2010, 08:46 AM   #16
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477

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, 03:18 PM   #17
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

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, 05:30 PM   #18
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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 05:33 PM.
 
Old 07-20-2010, 05:40 PM   #19
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

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, 05:47 PM   #20
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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, 06:09 PM   #21
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

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



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 01:42 AM
Patch iptables with imq support in Ubuntu nw504 Linux - Networking 0 03-21-2007 05:24 AM
Patching IPTABLES ?? Need Help?? Sevensins Linux - Security 2 09-06-2005 04:53 AM
help with imq device and iptables debloxie Linux - Networking 2 03-28-2004 07:08 AM
pls help!!! iptables patch for IMQ device target debloxie Linux - Networking 0 03-03-2004 05:16 AM

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

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