You are not logged in.

#1 2013-11-09 20:09:12

LucetLux
Member
Registered: 2013-08-16
Posts: 165

[SOLVED] dhcpcd NetworkManager "Ip configuration was unavailable"

Some time ago, when I installed arch, I was connecting to the internet using my modem/router only as a modem, so the dialling was handled by the computer, I had some problems back then which I was able to solve.
https://bbs.archlinux.org/viewtopic.php?id=168364

Now, I decided to switch my device to "router mode", therefore instead of directly dialling I only need to use dhcpcd to get an Ip address from it, and, there's where the problems start, as I had disabled dhcpcd earlier in order to get pppd to work properly, I enabled it back again using systemctl and disabled the latter, if I run dhcpcd from a terminal it works, it gets an address from the router and I can connect to the internet, as I did just now, but if I restart my computer the first thing I get when KDE loads is a message telling me that the wired connection could not be started followed by another one which just says "Ip configuration was unavailable".
After that, If I stop dhcpcd and start it back again it works, and here comes my second problem, I needed to open some ports, so I used " iptables -I INPUT -p tcp --dport 25565 --syn -j ACCEPT" to open it and then saved iptables by using "iptables-save > /etc/iptables/iptables.rules",

# Generated by iptables-save v1.4.19.1 on Sat Nov  9 17:22:35 2013
*filter
:INPUT ACCEPT [72:3765]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [71:3644]
-A INPUT -p tcp -m tcp --dport 25565 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
COMMIT
# Completed on Sat Nov  9 17:22:35 2013

And then I reloaded iptables, but this only seems to work when it feels like it, sometimes the port is opened, most times it isn't.

sudo iptables -nvL --line-numbers

Chain INPUT (policy ACCEPT 943 packets, 386K bytes)
num   pkts bytes target     prot opt in     out     source               destination         
1        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:25565 flags:0x17/0x02

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num   pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 1053 packets, 178K bytes)
num   pkts bytes target     prot opt in     out     source               destination

Any ideas on how to get around this issue would be appreciated, thanks in advance.

Last edited by LucetLux (2013-11-10 01:24:11)

Offline

#2 2013-11-09 21:52:15

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: [SOLVED] dhcpcd NetworkManager "Ip configuration was unavailable"

After disabling dhcpcd and creating a new connection in network manager most of my problems are gone. Port opening still seems a bit random though, but at least it works.
I'll label this as solved, even though I don't think this is how it is expected to work.

Last edited by LucetLux (2013-11-10 01:23:55)

Offline

Board footer

Powered by FluxBB