Skip to contentSkip to conversation

How to upgrade iptables

DISCUSSION boka 3 participants 3 messages Jun 29, 2004 – Jun 30, 2004

lore
Share & tools
lore

boka

author
#0 lore raw

Hi !

After sucessfully build of new version of iptables, i have checked if the rules are ok to new version. My previous version was 1.2.10.

root@qw:~/iptables/sources/iptables-1.2.11# ./iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
iptables: target `standard' v1.2.10 (I'm v1.2.11).

i dont know what to do next - there is no upgrade procedure in source docs.

greetz
boka

#1 lore raw
Quoted 4 lines · boka

Hi !

After sucessfully build of new version of iptables, i have checked if the rules are ok to new version. My previous version was 1.2.10.

Did you previously build 1.2.10 on your system in the same way?

If not (eg: if you installed one from a package manager, and you build the other from source), then you may have two different binaries (plus various bits of libraries) in more than one place on your system.

As a quick check, what does "whereis iptables" suggest?

For a longer list of files involved, see whether "locate iptables" seems to show duplicates etc.

If you do have more than one version installed, I suggest removing the older one (using the same method as was used to install it), and then reinstalling the new one.

If you built them both from source, make sure the install paths are the same on both occasions.

I've commonly seen iptables in either /sbin or /usr/sbin, and sometimes even /usr/local/sbin

Hope this helps,

Regards,

Antony.

Signature · 4 lines
Most people have more than the average number of legs.

                                                     Please reply to the list;
                                                           please don't CC me.
#2 lore raw

yes use the same method if for remving iptable (binary package) you used to installed it for example if it is RH or FC then use rpm -e iptables or removepkg iptables (for slack)
and other method for other distros.
:)

Quoted 42 lines · Antony Stone
Quoted 4 lines · boka

Hi !

After sucessfully build of new version of iptables, i have checked if the rules are ok to new version. My previous version was 1.2.10.

Did you previously build 1.2.10 on your system in the same way?

If not (eg: if you installed one from a package manager, and you build the other from source), then you may have two different binaries (plus various bits of libraries) in more than one place on your system.

As a quick check, what does "whereis iptables" suggest?

For a longer list of files involved, see whether "locate iptables" seems to show duplicates etc.

If you do have more than one version installed, I suggest removing the older one (using the same method as was used to install it), and then reinstalling the new one.

If you built them both from source, make sure the install paths are the same on both occasions.

I've commonly seen iptables in either /sbin or /usr/sbin, and sometimes even /usr/local/sbin

Hope this helps,

Regards,

Antony.

--
Most people have more than the average number of legs.

Please reply to the list;
please don't CC me.