Tag Info

New answers tagged

0

Hmm.. Just a thought. But, I do assume your using DHCP on your Wi-Fi network. Therefore, you wouldn't have an IP address until your network is fully up. So, let's just have a little while loop. while [ "$(ifconfig wlan0 | grep inet | grep 192.168.)" = "" ]; do sleep 1; done The 192.168. should be replaced with your standard range. Now it would check ...


0

possibilities: In your static setup for eth0 do not set a default gateway. (I think this is the real problem) add a hook to the dhcp client configuration to bring the other interface up after successful configuration.


0

Solution File /etc/nsswitch.conf must be present and contain the below line: hosts: dns files In my case it was solved. Don't know why, but it was empty!


4

dumpcap, the low-level traffic capture program of Wireshark, can be instructed to stop capturing after certain conditions with the option -a. You can stop capturing after writing 60MB. This isn't the same thing as measuring traffic, since it depends on the file encoding, but it should be close enough for most purposes (and anyway the exact traffic depends at ...


2

Hint: (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Try running netstat using sudo, i.e. sudo netstat ...


0

Set up the IPV4-only machines specially. E.g. using NetworkManager to disable IPV6 on the LAN connection. Done. If they're mobile... I don't think you can tie those settings to a given wired network, at least not in the GUI. In that case you may have to accept the machines are mangled and will not work on IPv6-only nets. They'll talk to each other just ...


1

Here's a really dirty method you could use with Perl and perl's system command. tcpdump will dump entire packets -s 0 on interface wlan0 -i wlan0 to file tcpdump.pcap. In my example, it'll stop all processes and shut down the interface after the file exceeds 1MB. Change to suit your needs. Run it with sudo. The sleep statement pauses the program to give ...


1

Appears you need to install ftp. Such an insecure protocol isn't installed/enabled by default on RHEL 6. yum install proftpd will install ftp.


0

So I figured out that the problem was actually in that the different OS's loaded the NIC in different orders. Arch had loaded the PCI-E network card as enp4s6 and the motherboard card as enp6s0. How I figured this out was that when in the CentOS install I ran ethtool eth0; ethtool eth1 and I noticed the different speeds. The cards had similar names so I ...


0

You can use this function :). Copy that code into file with name SendMessage.sh #!/bin/bash SendMessage() { com=`tty` set `who am i` who | grep -v "$1" >filef.txt exec < filef.txt array="" while read line do set $line echo $1 array+=($1) done rm filef.txt exec <$com echo ...


2

Linux manual page describes some possible situations where close() returns -1 on valid file descriptors: Not checking the return value of close() is a common but nevertheless serious programming error. It is quite possible that errors on a previous write(2) operation are first reported at the final close(). Not checking the return value when ...


0

you should at least tell us about the chipset, kernel version and the driver you used. In my case I have to use "wl" driver from broadcom via the bcmwl-kernel-source. That is a common case, because the broadcom chipsets are very common in notebooks. To get the Wifi-Connection stable, I had to upgrade to a current kernel 4.1.x and a patched driver version. ...


0

Use the --ping and --ping-restart (or --keepalive) options and openvpn will reconnect when it looses the connection.


0

Perhaps I'm not quite grasping what your definition of "consolidated documentation" is, but you could try, in Google's search, typing the following: vrrp site:keepalived.org The link to the UserGuide is here: KeepAliveD UserGuide


1

The URL you referenced is the official documentation. If it's incomplete or not helping, you'll need to talk tot he maintainers of that site to address those issues, but that is the offical, blessed, sanctified, formal, certified, everything-else-ified documentation.


0

This was a problem for me also and obviously still exists. I fixed the errors by removing hostapd from /etc/rc2.d/ and /etc/networking/if-pre-up.d/ /etc/network/interfaces controls hostapd now.. iface wlan0 inet static post-up /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf post-up service isc-dhcp-server restart address ...


1

You have to run the iperf in server mode on one device iperf -s and iperf in client mode on the other iperf -c IPADRESSOFSERVER at the same time.


0

I got it working by doing two things: Upped the announce rate - changed the notify interval from 900 to 90 in /etc/minidlna.conf, i.e. notify_interval=90 Added a multicast route. route add -net 239.0.0.0 netmask 255.0.0.0 eth0 ifconfig eth0 allmulti multicast I also tried a few other seemingly legitimate changes to /etc/minidlna.conf but they caused ...


0

Solution I can't provide this in a comment, but I want you to see a working hosts file (From my working Gentoo installation): # /etc/hosts: Local Host Database # # This file describes a number of aliases-to-address mappings for the for # local hosts that share this file. # # In the presence of the domain name service or NIS, this file may not be # ...


1

If you say "ping raspberrypi", it does not use the same way to do a name lookup as do your windows machines... probably. That is, the SMB/CIFS protocols have three ways of doing name lookups, but the other two are really only used if you configure a domain, which you're not doing. That means you need to do name lookups though the NMB protocol. Samba will ...


1

This might point you in right direction, but might not resolve the problem. DHCP and DNS demons on routers might mess things up. In my case I was having the same issue with opensuse and raspberypi. Here are all the steps I did: Edited hostname file /etc/hostname mymacnine tried alsoe mycmachine.domain Neither worked. Messed with resolv.conf Worked until ...


2

If you're using NetworkManager (and you very likely are): nmcli radio wifi off. This is simply a command line interface equivalent of the widget. NetworkManager is a complicated beast. I'm not sure what the basic commands are that it's using.


0

The answer was given by an update of the arch linux kernel to 4.1.2. Now it works again, thus it must have been something to do with the kernel version.


0

As a workaround create a script that checks if openvpn is still running: if ! pgrep "openvpn" > /dev/null; then /usr/sbin/service openvpn restart echo "["$(date "+%Y-%m-%d %H:%M:%S")"] openvpn restarted">> /var/log/openvpn.log fi and call chat script minutely in your crontab


0

Each file descriptor has a /proc/pid/fdinfo/num entry, like: # cat /proc/24332/fdinfo/28 pos: 0 flags: 0104002 mnt_id: 18 iff: tap0123acdc-66 So, with the interface name, you can get the pid with: # egrep -l iff:.*tap0123acdc-66 /proc/*/fdinfo/* 2>/dev/null|cut -d/ -f3 24332


0

According to the output format documentation, The interface name may have another name or NONE appended after the @ sign. This means that this device is bound to some other device, i.e. packets send through it are encapsulated and sent via the ``master'' device. If the name is NONE, the master is unknown. So your tun0 interface is part of a tunnel ...


0

Make sure your all eth configurationg files are correct. Post that if you want to change the slave use "ifenslave" command Syntax ifenslave -d bood0 to Attach a device ifenslave bond0


0

Unfortunately OpenWRT information on packages can be quite sketchy and opkg doesn't have a facility to search for a file in packages that are not yet installed, which doesn't help. I don't have access to a system running Attitude Adjustment (12.09), but on my routers running Barrier Breaker (14.07), brctl is provided by BusyBox: # opkg search ...


0

Pipe the output of the loop to netcat: for $i in {0000..9999} do echo "$i" done | netcat portx localhost This assumes that the daemon will take in multiple PINs separated by newlines.


0

Incorrect. IP address conflict is the key here. Provide another subnet for your WiFi network or (probably better) bridge WiFi AP interface with the ethernet. iptables may also be blocking some traffic. Please provide /etc/iptables.ipv4.nat contents. [ignore this paragraph if you go for bridging as advised] You may also be missing a DNS proxy software on ...


3

I assume you are using netcat-openbsd because you specify -4. It has -b to enable broadcast address, but it's known that UDP broadcast is not supported by this version of netcat even with -b. Debian Bug#702204 suggests a patch to fix that. You can install an alternative package netcat-traditional which seems to correctly support -b with UDP. Note that ...


1

Asked here and solved: http://raspberrypi.stackexchange.com/questions/33703/cant-turn-off-network#comment44003_33703 # service ifplugd stop && ifconfig eth0 down In cron i added through sudo crontab -e 0 23 * * * /usr/sbin/service ifplugd stop && /sbin/ifconfig eth0 down 0 8 * * * /usr/sbin/service ifplugd start && /sbin/ifconfig ...


5

Edited following OP's clarification on the use case: You can not do that using the latest official release of bash (currently 4.3.30 according to this page). lib/sh/netopen.c shows that bash opens a UDP socket (SOCK_DGRAM) then directly tries to connect without looking at the ip address to determine whether it would make sense to set specific socket options ...


0

For bridge creation with ifupdown, you should usually specify the underlying device using bridge_ports. And what is bridge_stp 0ff??? Working configuration would be like: auto m-br0 iface m-br0 inet static bridge_ports eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 address 10.0.0.1 network 10.0.0.0 broadcast 10.0.0.255 Read bridge-utils-interfaces ...


2

Really easy: Add the hex specification "\x" each two characters. Use echo -e for hex to be interpreted. Using your same example data: echo -e ...


0

Depending on operating system -- via routing socket (BSD family) or netlink socket (Linux). Very brief overview of available kernel interfaces is in GNU Quagga's documentation.


0

In the end, I wound up moving my Docker image to an Ubuntu laptop I had sitting around. Now my TFTP server works perfectly with zero modification, so the issue was almost certainly something to do with either Virtualbox, Windows or boot2docker (though I'm not sure about the last one). I'll post my question on a more relevant stackexchange (now that I know ...


0

Alright, I finally got it fixed just by adding up route add default gw 192.168.178.1 wlan0 below my configuration for wlan0 in /etc/network/interfaces, and it's working (at least until now...).


0

Is /etc/resolv.conf a symbolic link? Check with ls -l /etc/resolv.conf. If you see something like lrwxrwxrwx 1 root root 31 May 3 18:30 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf then your resolv.conf is managed by resolvconf. Before overwriting the content, you'll see a big header warning you # Dynamic resolv.conf(5) file for glibc ...


0

Checksum will also help to prevent corrupted download due to the following situation: The server has an internal error while serving the download hence the download is terminated. When that happens, there are a few possible outcomes: Good server - the server's implementation of Chunked transfer encoding is not buggy: Good client (like cURL, wget) will ...


-5

sudo chattr +i /etc/resolv.conf Source.


0

Uncomment auto eth0, auto eth1 or auto wlan for the interface you wish to come up when the unit boots.


0

I noticed that this can also be a hardware and/or driver problem. I used multicast UDP (transmit and receive) on my raspberryPI's without any trouble - with C, Java and/or Python programs. However, I just learned that UDP multicast receive DOES NOT WORK with the nice little USB nano wifi adapter from EDIMAX - sending UDP (multicast) works, also receiving ...


2

Do you mean NDP for IPv6 as defined in RFC 2461? If so, there is ndp command for OSX. To quickly get results you can run: ndp -an


0

I cannot guess the cause of the network down, but it looks like your container ran out of resources allocated, which could indirectly cause the problem. You can run vzubc on the HN to see circumstances like this: ---------------------------------------------------------------- CT 1078 | HELD Bar% Lim%| MAXH Bar% Lim%| BAR | LIM | FAIL ...


1

Finally found out the way to doing this, here it goes. It seems that is replaced by /, that made it work. sysctl net.ipv4.conf.eth2/1.proxy_arp


1

This can work, but is not a normal configuration. If you want services within a server to talk via multiple IP addresses consider using multiple loop back interfaces, EG lo0 127.0.0.1, lo1 127.0.0.2. That eliminates bandwidth and physical layer issues. That said, if the ICMP echo request is being sent and received, but not replied to, that suggests a ...


0

To do this without manual bridging (brctl, etc) and re-use the physical interface I went with VLANs. Assumptions: eth0 is the physical interface What I did: Create the VLAN interface: ip link add link eth0 name vlan1 type vlan id 1 Assign an IP to the interface: ip addr add x.x.x.x/24 brd x.x.x.x dev vlan1 Up the interface: ip link set dev vlan1 up If ...


0

I just had this problem on Debian Jessie: "Transfer timed out.". In /etc/default/tftpd-hpa, there is a line for the address: TFTP_ADDRESS="0.0.0.0:69". Replace it with the full server address. For example: TFTP_ADDRESS="192.168.99.10:69" And restart the daemon. That seems to have fixed it for me. This variable in Debian sets the --address option to the ...


1

The problem with blocking on IP is the person on the attacking end will just move to another IP, if they're intent on attacking your IP. The fail2ban facility is extremely effective at blocking IPs, so IPs block for certain periods of time + then unblock. This ensures if you incorrectly block an IP by accident, it will eventually unblock. Using fail2ban ...



Top 50 recent answers are included