FS#75401 - [iptables] remove symlink of iptables-apply or package the real iptables-apply script.

Attached to Project: Arch Linux
Opened by Haruue Icymoon (haruue) - Friday, 22 July 2022, 19:02 GMT
Last edited by Felix Yan (felixonmars) - Monday, 25 July 2022, 14:20 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

/usr/bin/iptables-apply has been symlink to xtables-legacy-multi, but xtables-legacy-multi doesn't come with support of iptables-apply.

Therefore, on an Arch Linux server, if you execute the iptables-apply command, you will see the following error message:

# iptables-apply
ERROR: No valid subcommand given.
Valid subcommands:
* iptables
* main4
* iptables-save
* save4
...


Please consider removing this symlink (so we will be able to make an iptables-apply package in the AUR), or package the real iptables-apply (should be a script).


Additional info:
* package version(s): iptables 1:1.8.8-1
* config and/or log files etc. n/a
* link to upstream bug report, if any: nope, this is a package issue.
* man page of iptables-apply(8): https://man.archlinux.org/man/iptables-apply.8
* the cause of this issue: https://github.com/archlinux/svntogit-packages/blob/b179758d46aae160888a74fb5ee0b5bcdd212954/trunk/PKGBUILD#L86

Steps to reproduce:
1. pacman -S iptables
2. iptables-apply /etc/iptables/iptables.rules
3. ls -l /usr/bin/iptables-apply
This task depends upon

Closed by  Felix Yan (felixonmars)
Monday, 25 July 2022, 14:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  iptables-1:1.8.8-2
iptables-nft-1:1.8.8-2
Comment by Haruue Icymoon (haruue) - Saturday, 23 July 2022, 02:50 GMT
This bug also applied to core/iptables-nft 1:1.8.8-1
Comment by Haruue Icymoon (haruue) - Saturday, 23 July 2022, 06:22 GMT
I have added a package aur/iptables-apply[1], which installs the iptables-apply script into /usr/local/bin, as a temporary solution to this bug.
[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=iptables-apply
Comment by Haruue Icymoon (haruue) - Monday, 25 July 2022, 13:14 GMT
The file attached is a patch for the PKGBUILD[1] of iptables and iptables-nft, which makes iptables-apply work.

Could you please apply this patch, build and release the 1:1.8.8-2? It just changes two lines of PKGBUILD and can be checked & applied in few minutes.

[1] https://github.com/archlinux/svntogit-packages/blob/b179758d46aae160888a74fb5ee0b5bcdd212954/trunk/PKGBUILD

Loading...