Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #219443 > unrolled thread
| Started by | William Torrez Corea <willitc9888@gmail.com> |
|---|---|
| First post | 2020-02-25 23:40 +0100 |
| Last post | 2020-03-21 00:40 +0100 |
| Articles | 11 — 5 participants |
Back to article view | Back to linux.debian.user
ifup && iptables error William Torrez Corea <willitc9888@gmail.com> - 2020-02-25 23:40 +0100
Re: ifup && iptables error deloptes <deloptes@gmail.com> - 2020-02-26 00:30 +0100
Re: ifup && iptables error Reco <recoverym4n@enotuniq.net> - 2020-02-26 08:00 +0100
Re: ifup && iptables error William Torrez Corea <willitc9888@gmail.com> - 2020-02-26 22:30 +0100
Re: ifup && iptables error Reco <recoverym4n@enotuniq.net> - 2020-02-27 12:10 +0100
Re: ifup && iptables error William Torrez Corea <willitc9888@gmail.com> - 2020-02-26 23:20 +0100
Re: ifup && iptables error William Torrez Corea <willitc9888@gmail.com> - 2020-03-18 02:20 +0100
Re: ifup && iptables error Dan Ritter <dsr@randomstring.org> - 2020-03-18 15:00 +0100
Re: ifup && iptables error William Torrez Corea <willitc9888@gmail.com> - 2020-03-20 20:20 +0100
Re: ifup && iptables error Dan Ritter <dsr@randomstring.org> - 2020-03-20 21:20 +0100
Re: ifup && iptables error songbird <songbird@anthive.com> - 2020-03-21 00:40 +0100
| From | William Torrez Corea <willitc9888@gmail.com> |
|---|---|
| Date | 2020-02-25 23:40 +0100 |
| Subject | ifup && iptables error |
| Message-ID | <zDR1T-6zB-11@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
I get the following error message [....] Configuring network interfaces...ifquery: /etc/network/interfaces:19: unknown or no address type and no inherits keyword specified ifquery: couldn't read interfaces file "/etc/network/interfaces" ifquery: /etc/network/interfaces:19: unknown or no address type and no inherits keyword specified ifquery: couldn't read interfaces file "/etc/network/interfaces" ifup: /etc/network/interfaces:19: unknown or no address type and no inherits keyword specified ifup: couldn't read interfaces file "/etc/network/interfaces" failed. [ ok ] Cleaning up temporary files.... [ ok ] Setting up ALSA...done. [ ok ] Setting sensors limits...done. [....] Loading netfilter rules...run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables start Bad argument `COMMIT' Error occurred at line: 4 Try `iptables-restore -h' or 'iptables-restore --help' for more information. run-parts: /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited with return code 2 run-parts: executing /usr/share/netfilter-persistent/plugins.d/25-ip6tables start failed. -- William Torrez Corea
[toc] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2020-02-26 00:30 +0100 |
| Message-ID | <zDROi-75s-9@gated-at.bofh.it> |
| In reply to | #219443 |
William Torrez Corea wrote: > [....] Loading netfilter rules...run-parts: executing > /usr/share/netfilter-persistent/plugins.d/15-ip4tables start > Bad argument `COMMIT' > Error occurred at line: 4 > Try `iptables-restore -h' or 'iptables-restore --help' for more > information. run-parts: > /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited with return > code 2 run-parts: executing > /usr/share/netfilter-persistent/plugins.d/25-ip6tables start > failed. iptables changed to netfilter as default - could be that your issue is related to that? or you are missing somethe value and your scripts break
[toc] | [prev] | [next] | [standalone]
| From | Reco <recoverym4n@enotuniq.net> |
|---|---|
| Date | 2020-02-26 08:00 +0100 |
| Message-ID | <zDYPL-2Sg-3@gated-at.bofh.it> |
| In reply to | #219443 |
Hi. On Tue, Feb 25, 2020 at 10:37:18PM +0000, William Torrez Corea wrote: > I get the following error message > > ifquery: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified You have a syntax error at line 19 of your e/n/i. > /usr/share/netfilter-persistent/plugins.d/15-ip4tables start > Bad argument `COMMIT' > Error occurred at line: 4 And whatever is in /etc/iptables/rules.v4 - it's not a valid output of iptables-save. Now, to answer the question "what should I change there to get these errors disappear" - the contents of both files are needed. Reco
[toc] | [prev] | [next] | [standalone]
| From | William Torrez Corea <willitc9888@gmail.com> |
|---|---|
| Date | 2020-02-26 22:30 +0100 |
| Message-ID | <zEcpI-3LN-19@gated-at.bofh.it> |
| In reply to | #219443 |
[Multipart message — attachments visible in raw view] — view raw
Exactly, i wan't reformulate the question. What should I change there to get these errors disappear? I'm trying to change some values for example in /etc/iptables/rules.v6 # Generated by xtables-save v1.8.2 on Mon Aug 5 19:42:00 2019 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] # Bad argument #COMMIT # Completed on Mon Aug 5 19:42:00 2019 But i get the following error now when execute the following command /usr/share/netfilter-persistent/plugins.d/25-ip6tables start ip6tables-restore: COMMIT expected at line 8 On Tue, Feb 25, 2020 at 10:37 PM William Torrez Corea <willitc9888@gmail.com> wrote: > I get the following error message > > [....] Configuring network interfaces...ifquery: > /etc/network/interfaces:19: unknown or no address type and no inherits > keyword specified > ifquery: couldn't read interfaces file "/etc/network/interfaces" > ifquery: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified > ifquery: couldn't read interfaces file "/etc/network/interfaces" > ifup: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified > ifup: couldn't read interfaces file "/etc/network/interfaces" > failed. > [ ok ] Cleaning up temporary files.... > [ ok ] Setting up ALSA...done. > [ ok ] Setting sensors limits...done. > [....] Loading netfilter rules...run-parts: executing > /usr/share/netfilter-persistent/plugins.d/15-ip4tables start > Bad argument `COMMIT' > Error occurred at line: 4 > Try `iptables-restore -h' or 'iptables-restore --help' for more > information. > run-parts: /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited > with return code 2 > run-parts: executing > /usr/share/netfilter-persistent/plugins.d/25-ip6tables start > failed. > > -- > William Torrez Corea > -- William Torrez Corea
[toc] | [prev] | [next] | [standalone]
| From | Reco <recoverym4n@enotuniq.net> |
|---|---|
| Date | 2020-02-27 12:10 +0100 |
| Message-ID | <zEpdf-3mo-3@gated-at.bofh.it> |
| In reply to | #219507 |
Hi. On Wed, Feb 26, 2020 at 09:20:34PM +0000, William Torrez Corea wrote: > Exactly, i wan't reformulate the question. > > What should I change there to get these errors disappear? > > I'm trying to change some values for example in > > /etc/iptables/rules.v6 > > # Generated by xtables-save v1.8.2 on Mon Aug 5 19:42:00 2019 > *filter > :INPUT ACCEPT [0:0] > :FORWARD ACCEPT [0:0] > :OUTPUT ACCEPT [0:0] > # Bad argument > #COMMIT > # Completed on Mon Aug 5 19:42:00 2019 > > But i get the following error now when execute the following command > /usr/share/netfilter-persistent/plugins.d/25-ip6tables start > ip6tables-restore: COMMIT expected at line 8 It's not that you're not supposed to edit these files directly, but it's the lack of error checking that gives you this trouble. I suggest you to use iptables/ip6tables to edit your current netfilter rulesets, and use either /usr/share/netfilter-persistent/plugins.d/15-ip4tables save or /usr/share/netfilter-persistent/plugins.d/25-ip6tables save to generate the contents of the rules' files. I.e. iptables -A INPUT -p 22 -j ACCEPT /usr/share/netfilter-persistent/plugins.d/15-ip4tables save Reco
[toc] | [prev] | [next] | [standalone]
| From | William Torrez Corea <willitc9888@gmail.com> |
|---|---|
| Date | 2020-02-26 23:20 +0100 |
| Message-ID | <zEdc6-4iu-3@gated-at.bofh.it> |
| In reply to | #219443 |
[Multipart message — attachments visible in raw view] — view raw
But when i modify the following file /etc/iptables/rules.v4 # Generated by xtables-save v1.8.2 on Mon Aug 5 19:42:00 2019 *nat -A POSTROUTING -o eth0 -j MASQUERADE COMMIT *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A OUTPUT -d 127.0.0.1/32 -j ACCEPT -A OUTPUT -d 192.168.0.0/16 -j ACCEPT -A OUTPUT -d 10.0.0.0/8 -j ACCEPT -A OUTPUT -d 172.16.0.0/12 -j ACCEPT #COMMIT # Completed on Mon Aug 5 19:42:00 2019 The problem disappear. This problem appear when i try to install the package git-all with apt. On Tue, Feb 25, 2020 at 10:37 PM William Torrez Corea <willitc9888@gmail.com> wrote: > I get the following error message > > [....] Configuring network interfaces...ifquery: > /etc/network/interfaces:19: unknown or no address type and no inherits > keyword specified > ifquery: couldn't read interfaces file "/etc/network/interfaces" > ifquery: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified > ifquery: couldn't read interfaces file "/etc/network/interfaces" > ifup: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified > ifup: couldn't read interfaces file "/etc/network/interfaces" > failed. > [ ok ] Cleaning up temporary files.... > [ ok ] Setting up ALSA...done. > [ ok ] Setting sensors limits...done. > [....] Loading netfilter rules...run-parts: executing > /usr/share/netfilter-persistent/plugins.d/15-ip4tables start > Bad argument `COMMIT' > Error occurred at line: 4 > Try `iptables-restore -h' or 'iptables-restore --help' for more > information. > run-parts: /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited > with return code 2 > run-parts: executing > /usr/share/netfilter-persistent/plugins.d/25-ip6tables start > failed. > > -- > William Torrez Corea > -- William Torrez Corea Linux debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux
[toc] | [prev] | [next] | [standalone]
| From | William Torrez Corea <willitc9888@gmail.com> |
|---|---|
| Date | 2020-03-18 02:20 +0100 |
| Message-ID | <zLvxg-tg-3@gated-at.bofh.it> |
| In reply to | #219443 |
[Multipart message — attachments visible in raw view] — view raw
Still don't get results positive. Now, i get the following message: Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ can't create /var/lib/dhcp/dhclient.eth0.leases: No such file or directory Cannot find device "eth0" Failed to get interface index: No such device If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting. ifup: failed to bring up eth0 1. Download https://www.isc.org/dhcp/ 2. Configure, make, make install the source 3. Then install the dhcp configure https://wiki.debian.org/DHCP_Server but in this point i am missing because don't recognise the isc-dhcp-server in the system On Tue, Feb 25, 2020 at 10:37 PM William Torrez Corea <willitc9888@gmail.com> wrote: > I get the following error message > > [....] Configuring network interfaces...ifquery: > /etc/network/interfaces:19: unknown or no address type and no inherits > keyword specified > ifquery: couldn't read interfaces file "/etc/network/interfaces" > ifquery: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified > ifquery: couldn't read interfaces file "/etc/network/interfaces" > ifup: /etc/network/interfaces:19: unknown or no address type and no > inherits keyword specified > ifup: couldn't read interfaces file "/etc/network/interfaces" > failed. > [ ok ] Cleaning up temporary files.... > [ ok ] Setting up ALSA...done. > [ ok ] Setting sensors limits...done. > [....] Loading netfilter rules...run-parts: executing > /usr/share/netfilter-persistent/plugins.d/15-ip4tables start > Bad argument `COMMIT' > Error occurred at line: 4 > Try `iptables-restore -h' or 'iptables-restore --help' for more > information. > run-parts: /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited > with return code 2 > run-parts: executing > /usr/share/netfilter-persistent/plugins.d/25-ip6tables start > failed. > > -- > William Torrez Corea > -- William Torrez Corea
[toc] | [prev] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2020-03-18 15:00 +0100 |
| Message-ID | <zLHoJ-7HV-1@gated-at.bofh.it> |
| In reply to | #220196 |
William Torrez Corea wrote: > Still don't get results positive. Now, i get the following message: > > Internet Systems Consortium DHCP Client 4.4.1 > Copyright 2004-2018 Internet Systems Consortium. > All rights reserved. > For info, please visit https://www.isc.org/software/dhcp/ > > can't create /var/lib/dhcp/dhclient.eth0.leases: No such file or directory > Cannot find device "eth0" > Failed to get interface index: No such device > > If you think you have received this message due to a bug rather > than a configuration issue please read the section on submitting > bugs on either our web page at www.isc.org or in the README file > before submitting a bug. These pages explain the proper > process and the information we find helpful for debugging. > > exiting. > ifup: failed to bring up eth0 > Run ip l Does it show eth0? I bet it got renamed out from under you. -dsr-
[toc] | [prev] | [next] | [standalone]
| From | William Torrez Corea <willitc9888@gmail.com> |
|---|---|
| Date | 2020-03-20 20:20 +0100 |
| Message-ID | <zMvlv-4V5-1@gated-at.bofh.it> |
| In reply to | #219443 |
[Multipart message — attachments visible in raw view] — view raw
When i execute show the following:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN mode DEFAULT group default qlen 1000
link/ether e0:db:55:c2:58:45 brd ff:ff:ff:ff:ff:ff
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UP mode DORMANT group default qlen 1000
link/ether 54:35:30:89:cd:f3 brd ff:ff:ff:ff:ff:ff
On Tue, Feb 25, 2020 at 10:37 PM William Torrez Corea <willitc9888@gmail.com>
wrote:
> I get the following error message
>
> [....] Configuring network interfaces...ifquery:
> /etc/network/interfaces:19: unknown or no address type and no inherits
> keyword specified
> ifquery: couldn't read interfaces file "/etc/network/interfaces"
> ifquery: /etc/network/interfaces:19: unknown or no address type and no
> inherits keyword specified
> ifquery: couldn't read interfaces file "/etc/network/interfaces"
> ifup: /etc/network/interfaces:19: unknown or no address type and no
> inherits keyword specified
> ifup: couldn't read interfaces file "/etc/network/interfaces"
> failed.
> [ ok ] Cleaning up temporary files....
> [ ok ] Setting up ALSA...done.
> [ ok ] Setting sensors limits...done.
> [....] Loading netfilter rules...run-parts: executing
> /usr/share/netfilter-persistent/plugins.d/15-ip4tables start
> Bad argument `COMMIT'
> Error occurred at line: 4
> Try `iptables-restore -h' or 'iptables-restore --help' for more
> information.
> run-parts: /usr/share/netfilter-persistent/plugins.d/15-ip4tables exited
> with return code 2
> run-parts: executing
> /usr/share/netfilter-persistent/plugins.d/25-ip6tables start
> failed.
>
> --
> William Torrez Corea
>
--
William Torrez Corea
[toc] | [prev] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2020-03-20 21:20 +0100 |
| Message-ID | <zMwhz-5u4-3@gated-at.bofh.it> |
| In reply to | #220241 |
William Torrez Corea wrote: > When i execute show the following: > > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode > DEFAULT group default qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > 2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast > state DOWN mode DEFAULT group default qlen 1000 > link/ether e0:db:55:c2:58:45 brd ff:ff:ff:ff:ff:ff > 3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state > UP mode DORMANT group default qlen 1000 > link/ether 54:35:30:89:cd:f3 brd ff:ff:ff:ff:ff:ff > > > ifquery: couldn't read interfaces file "/etc/network/interfaces" > > ifup: /etc/network/interfaces:19: unknown or no address type and no > > inherits keyword specified > > ifup: couldn't read interfaces file "/etc/network/interfaces" > > failed. Right, your basic problem is that your interfaces are now names enp7s0 and wlp6s0 not eth0 and wifi0 or whatever they used to be. Fix them in /etc/network/interfaces, double check your iptables rules are either using the new names or don't mention interfaces at all, and you should be relatively happy. -dsr-
[toc] | [prev] | [next] | [standalone]
| From | songbird <songbird@anthive.com> |
|---|---|
| Date | 2020-03-21 00:40 +0100 |
| Message-ID | <zMzp8-7js-7@gated-at.bofh.it> |
| In reply to | #220243 |
Dan Ritter wrote: > William Torrez Corea wrote: >> When i execute show the following: >> >> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode >> DEFAULT group default qlen 1000 >> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 >> 2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast >> state DOWN mode DEFAULT group default qlen 1000 >> link/ether e0:db:55:c2:58:45 brd ff:ff:ff:ff:ff:ff >> 3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state >> UP mode DORMANT group default qlen 1000 >> link/ether 54:35:30:89:cd:f3 brd ff:ff:ff:ff:ff:ff >> >> > ifquery: couldn't read interfaces file "/etc/network/interfaces" >> > ifup: /etc/network/interfaces:19: unknown or no address type and no >> > inherits keyword specified >> > ifup: couldn't read interfaces file "/etc/network/interfaces" >> > failed. > > Right, your basic problem is that your interfaces are now names > enp7s0 > and > wlp6s0 > > not eth0 and wifi0 or whatever they used to be. > > Fix them in /etc/network/interfaces, double check your iptables > rules are either using the new names or don't mention interfaces > at all, and you should be relatively happy. or boot with the param to the kernel net.ifnames=0 songbird
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web