Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptables_removeall.sh error: iptables: Too many links. #651

Open
enihcam opened this issue Apr 2, 2023 · 4 comments
Open

iptables_removeall.sh error: iptables: Too many links. #651

enihcam opened this issue Apr 2, 2023 · 4 comments
Assignees
Labels
linux bug happening on linux build miniupnpd netfilter waiting for feedback The reporter need to provide feedback

Comments

@enihcam
Copy link

enihcam commented Apr 2, 2023

Apr 02 12:46:05 iptables_removeall.sh[650]: Bad argument `MINIUPNPD'
Apr 02 12:46:05 iptables_removeall.sh[650]: Try `iptables -h' or 'iptables --help' for more information.
Apr 02 12:46:05 iptables_removeall.sh[652]: iptables: Too many links.
Apr 02 12:46:05 iptables_removeall.sh[656]: Bad argument `MINIUPNPD'
Apr 02 12:46:05 iptables_removeall.sh[656]: Try `iptables -h' or 'iptables --help' for more information.
Apr 02 12:46:05 iptables_removeall.sh[657]: iptables: Too many links.
Apr 02 12:46:05 iptables_removeall.sh[661]: Bad argument `MINIUPNPD'
Apr 02 12:46:05 iptables_removeall.sh[661]: Try `iptables -h' or 'iptables --help' for more information.
Apr 02 12:46:05 iptables_removeall.sh[663]: iptables: Too many links.
Apr 02 12:46:05 iptables_removeall.sh[666]: Bad argument `MINIUPNPD-POSTROUTING'
Apr 02 12:46:05 iptables_removeall.sh[666]: Try `iptables -h' or 'iptables --help' for more information.
Apr 02 12:46:05 iptables_removeall.sh[668]: iptables: Too many links.
@miniupnp miniupnp self-assigned this Apr 3, 2023
@miniupnp miniupnp added miniupnpd netfilter linux bug happening on linux build waiting for feedback The reporter need to provide feedback labels Apr 3, 2023
@miniupnp
Copy link
Owner

miniupnp commented Apr 3, 2023

@enihcam which iptables version ? which miniupnpd version ?

also try to run iptables_removeall.sh like this :
$ bash -x iptables_removeall.sh

@enihcam
Copy link
Author

enihcam commented Apr 3, 2023

@enihcam which iptables version ?

1.8.9

which miniupnpd version ?

2.3.3

also try to run iptables_removeall.sh like this : $ bash -x iptables_removeall.sh

i'll try it later.

@enihcam
Copy link
Author

enihcam commented May 7, 2023

sorry for late reply:

/etc/miniupnpd $ sudo bash -x iptables_removeall.sh
+ EXT=1
++ dirname iptables_removeall.sh
+ . ./miniupnpd_functions.sh
+++ which ip
++ IP=/usr/bin/ip
++ '[' -z '' ']'
+++ which iptables
++ IPTABLES=/usr/bin/iptables
++ IP='/usr/bin/ip -4'
++ IPTABLES='/usr/bin/iptables -w'
++ CHAIN=MINIUPNPD
++ CLEAN=
++ getopts :c:i:f opt
++ '[' -n 1 ']'
++ '[' -z '' ']'
+++ LC_ALL=C
+++ /usr/bin/ip -4 route
+++ sed -e 's/.*dev[[:space:]]*//' -e 's/[[:space:]].*//'
+++ grep default
++ EXTIF=ppp0
+++ LC_ALL=C
+++ /usr/bin/iptables -w -t filter -L -n
+++ awk '/MINIUPNPD / {printf $1}'
++ FDIRTY=MINIUPNPDChain
++ '[' -z '' ']'
+++ LC_ALL=C
+++ /usr/bin/iptables -w -t nat -L -n
+++ awk '/MINIUPNPD / {printf $1}'
++ NDIRTY=MINIUPNPDChain
+++ LC_ALL=C
+++ /usr/bin/iptables -w -t mangle -L -n
+++ awk '/MINIUPNPD / {printf $1}'
++ MDIRTY=MINIUPNPDChain
+++ LC_ALL=C
+++ /usr/bin/iptables -w -t nat -L -n
+++ awk '/MINIUPNPD-POSTROUTING / {printf $1}'
++ NPDIRTY=MINIUPNPD-POSTROUTINGChain
+ '[' MINIUPNPDChain = MINIUPNPDChain ']'
+ /usr/bin/iptables -w -t nat -F MINIUPNPD
+ /usr/bin/iptables -w -t nat -D PREROUTING -i ppp0 -j MINIUPNPD
+ /usr/bin/iptables -w -t nat -X MINIUPNPD
+ '[' MINIUPNPDChain = MINIUPNPDChain ']'
+ /usr/bin/iptables -w -t mangle -F MINIUPNPD
+ /usr/bin/iptables -w -t mangle -D PREROUTING -i ppp0 -j MINIUPNPD
+ /usr/bin/iptables -w -t mangle -X MINIUPNPD
+ '[' MINIUPNPDChain = MINIUPNPDChain ']'
+ /usr/bin/iptables -w -t filter -F MINIUPNPD
+ /usr/bin/iptables -w -t filter -D FORWARD -i ppp0 '!' -o ppp0 -j MINIUPNPD
+ /usr/bin/iptables -w -t filter -X MINIUPNPD
+ '[' MINIUPNPD-POSTROUTINGChain = MINIUPNPD-POSTROUTINGChain ']'
+ /usr/bin/iptables -w -t nat -F MINIUPNPD-POSTROUTING
+ /usr/bin/iptables -w -t nat -D POSTROUTING -o ppp0 -j MINIUPNPD-POSTROUTING
+ /usr/bin/iptables -w -t nat -X MINIUPNPD-POSTROUTING

@miniupnp
Copy link
Owner

miniupnp commented May 8, 2023

@enihcam so it worked with the bash -x option :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux bug happening on linux build miniupnpd netfilter waiting for feedback The reporter need to provide feedback
Projects
None yet
Development

No branches or pull requests

2 participants