LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble patching iptables with IMQ (https://www.linuxquestions.org/questions/linux-software-2/trouble-patching-iptables-with-imq-820073/)

sag47 07-20-2010 08:46 AM

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

systemlordanubis 07-20-2010 03:18 PM

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.

sag47 07-20-2010 05:30 PM

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.

systemlordanubis 07-20-2010 05:40 PM

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.

sag47 07-20-2010 05:47 PM

Ok post here with a link to it so I know when you ask it. Otherwise I may not see your question.

systemlordanubis 07-20-2010 06:09 PM

Hi Sam:

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

Thanks again.
Anubis


All times are GMT -5. The time now is 02:22 PM.