New answers tagged

1

The file you need to make or edit is called ifcfg <interface>, where <interface> could be e.g. eth0 or eth1. On Freebsd and Debian I used :ifconfig <interface> <ip address> <netmask> and it worked please try it.


0

Just as I thought, this is possible using ifconfig. On the host being configured, type: ifconfig eth0 192.168.146.97 netmask 255.255.255.224


2

To set up networking for your chrooted session you need to copy the DNS configuration into the chroot environment : cp /etc/resolv.conf /mnt/etc/resolv.conf Or ln -s /etc/resolv.conf /mnt/etc/resolv.conf


0

netcat has a -k option that does what the OP wanted a year ago: From the man pages: -k Forces nc to stay listening for another connection after its current connection is completed. It is an error to use this option with‐ out the -l option. So this should work: nc -lk -p 8080


1

The ettercap utility offers this functionality, via its --bridge parameter. Man page : http://linux.die.net/man/8/ettercap Project page : https://ettercap.github.io/ettercap


0

I still haven't found anything in terms of a configuration web server as stated in my question, but this article addresses the general problem really well and lays out the current options. Essentially options include: Wi-Fi protected setup including USB flash drive configured from an AP (rare) PIN Push button (possibly the best solution when there is ...


0

The guide doesn’t have you add nic=eno### to this command, but it failed for me if I didn’t use it. You can find your device number via the following command cat /etc/sysconfig/network-scripts/ifcfg-e* | grep DEVICE Mine is eno16777984 so this is my example command. pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.1.218 cidr_netmask=32 ...


0

On Arch linux, where systemd seems the norm over rc/init.d I had a similar problem. This answer differs from the others in the following ways : The configuration file does not reside in /etc/init.d but somewhere under /etc/systemd/system/. Specifically /etc/systemd/system/multi-user.target.wants/hostapd, in my case, where the ExecStart line points to the ...


0

If you have IPv6 disabled in sysctl.conf, check the interface configuration (/etc/sysconfig/network-scripts/ifcfg-enp7s0) and set IPV6INIT=no. Then you can restart the network service or reboot the system and check for errors again.


2

You could install the package nethogs if it is available for your system. This command is similar to top and will show you your running processes and how much network traffic they are generating. Use this command sequence: nethogs nethogs my_interface(s) If nethogs is not available you might try the iptraf command which will sort connections by usage. ...


1

I used the command sudo ufw allow 3389/tcp and then restarted using sudo /etc/init.d/xrdp restart to solve this same issue on a pi. However my /etc/ufw/before.rules file looked like this: # START OPENVPN RULES # NAT table rules *nat :POSTROUTING ACCEPT [0:0] # Allow traffic from OpenVPN client to eth0 -A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE ...


0

They should get closed as soon as the TCP timeout is reached or KeepAlive messages do not receive any answer from your old connection. There is nothing to worry about. If they don't, there is some bug in the openssh, which should get reported upstream.


4

Enable one of the SSH keepalive messages, for example by enabling TCPKeepAlive or ClientAliveInterval in the server's sshd config. Similarly, in the client config you can use TCPKeepAlive and ServerAliveInterval. TCPKeepAlive used to just be KeepAlive, if you have an old version of OpenSSH. TCP keepalives are a feature that is part of TCP, and operates ...


12

First three octets in a MAC address uniquely identify the manufacturer of the device. Udev rules allow you to match any number of characters with an asterisk. Thus, you can write a generic rule that will match any device of a specific vendor: SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="74:2f:68*", NAME="wlan0" Alternatively, you can stop matching on ...


2

extract the first byte (e.g. 07 from your example) bitwise AND it with decimal 254 (11111110 - all bits except zeroth bit set) bitwise OR it with decimal 2 (00000010 - only 1st bit set) combine the first byte back with the last five bytes e.g. #! /bin/sh mac='07:d4:51:9f:50:6c' lastfive=$( echo "$mac" | cut -d: -f 2-6 ) firstbyte=$( echo "$mac" | cut ...


2

The extra hostname comes from a DNS .in-addr.arpa IP address lookup (often called 'reverse DNS', that maps IP addresses to hostnames). Or perhaps /etc/hosts. From man hostname: -A, --all-fqdns Displays all FQDNs of the machine. This option enumerates all configured network addresses on all configured network interfaces, and translates them ...


2

Create a new file /etc/modprobe.d/rt2800usb.conf with the following line : options rt2800usb nohwcrypt=1 Reboot Or blacklist the defaut drivers and use the nl80211driver to connect through wpa_supplicant: nano /etc/modprobe.d/blacklist.conf add the following lines: blacklist rt2800usb blacklist rt2x00lib blacklist rt2x00usb Connect through the ...


1

Well I found the problem and a solution. I´ve got the packetloss cause of identical MAC-Adresses on different switch ports. The virtual interface VMK0 Blade 7 had the same MAC dann the hardware interface of Blade 11. So what I´ve done is, I give the VMK0 interface a new MAC address. For that I go over the iDRAC interface of the Blade Enclousure and loging ...


1

The easiest solution here is to add additional addresses to the host, and then bind one container to each address. For example, assuming that your host is 192.168.1.20, you could add additional addresses like this: ip addr add 192.168.1.21/32 dev eth0 ip addr add 192.168.1.22/32 dev eth0 ip addr add 192.168.1.23/32 dev eth0 And then, when starting a ...


1

ifconfig = Solaris ipconfig = Windows ip = Linux That I know, but am certainly open to additions and corrections.


0

I have the same problem with my university they are using mikrotik routers some times I need to disconnect the WIFI and connect to another one and it works,I use Firefox on xubuntu 14.04 Just enter a google home page and type the username then use it


0

Easy-rsa was bundled with OpenVPN 2.2.x and earlier. If you're using OpenVPN 2.3.x, you need to download easy-rsa separately from here. Location of easy-rsa up to openvpn 2.2.x: installed from rpm or deb: /usr/share/doc/packages/openvpn or /usr/share/doc/openvpn installed from a .tar.gz file: in the top level directory of the expanded source tree. Copy ...


1

I have a computer with Linux BackTrack 5 as host and Windows XP as guest on virtual box. I am using Host-Only-Adapter to create virtual LAN and to share USB modem internet as well so that both host and guest are simultaneously connected to internet via single USB modem. Usually virtual box (Vmware or other) creates its own own virtual subnetwork, ...


0

You can list other networks in cli using nmcli. nmcli con show or nmcli d Then you need to copy your UUID for further connect to the ones-needed interface. nmcli c up uuid <paste uuid here> or nmcli -p con up "my-eth1" ifname eth1 About resources: you can get acquainted at first with this: nmcli, than you can go further and use this ...


4

Your GUI explorer is using information from the avahi daemon which is listening for services on the local network. You can do the same from the cli with avahi-browse -rat


0

I've found a solution on my own by deep reading man lsof. (Yes, RT*M still helps.) Thanks @Gilles for aiming. Here is the solution: lsof -aPi -p 555 (555 is the PID). Explanation: -p to specify the PID number; -i to display only network devices; -a to AND two conditions above (otherwise they will be ORed); -P to display port numbers (instead port names ...


2

An answer to this question suggested looking in /sys/, which turns out to help. For example: cat /sys/class/net/example.tap/owner reveals the uid of the owning user, or -1 if the interface isn't owned by a user. Similarly with group substituted for owner to get group ownership. I'm not sure if there's a "cleaner" method that doesn't involve delving ...


1

lsof provides information about files opened by processes, including network ports. It's available on pretty much all unix systems, including OSX. The Rosetta Stone for Unix doesn't list any other tool for “match process to file or port” on OSX. To list processes listening on a TCP port, you can use lsof -iTCP -sTCP:LISTEN lsof -iUDP lists processes ...


0

On FreeBSD, you can use sockstat for this information. I am not sure whether OS X has sockstat, as I don't have a Mac. For instance, to see all of the TCPv4 connections: sockstat -4


-1

if you want to know which port is listening you can use netstat's -p option.you need to be the superuser: $ sudo netstat -nlp | grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 125004/nginx if you want to know more about it try this link


0

Yes, if one of your wireless cards supports AP Mode, you can use it as an Access Point. Here's an explanation on how to do that using hostapd and dnsmasq: https://seravo.fi/2014/create-wireless-access-point-hostapd . I've recently finished a project that does this automatically on Ubuntu 14.04. It's composed of a shell script that handles all the ...


2

Actually USB tethering creates a symmetric connection between your phone and PC. The direction your traffic can go is only defined by the network interface configuration and the services running on each side. In order to let the traffic go from the phone to the PC, you could (for example): configure your PC to run DHCP and share its internet connection ...


1

how do perform a check which network interface is active Any of the interfaces saying state UP are active, and providing connectivity to some network or another. and providing internet and internet is working on that interface. You are really asking about just how approximately does ip routing work, and there is a lot of depth to that question. ...


3

One fairly good way is to check the routing table to see where the default routing goes ip route list | grep default


-1

simply type route. It should give you the active Net providing interface's details.


2

Assuming that you want to open and send the same file at each new connection, you can use -U, the reverse direction to -u, and the reversed addresses, as in the following socat -b1048576 -U TCP4-LISTEN:9899,reuseaddr,fork OPEN:somefile.dat socat TCP:127.0.0.1:9899 - >/dev/null If you want the file to repeat ad infinitum, you can use something like ...


0

Try installing with upgrades from the installation itself. Some Driver files or the files required for compiling the driver might be missing.


0

What I need to disable eth0, after that, it works fine!


0

This seems to be an issue with the 4.3.8 update on Ubuntu. There are tons of posts about it on various sites with no clear answer on a fix (as multiple people have tried various things and have had different results). Some have found if you comment out 'security = share' (using #) in /etc/samba/smb.conf it solves the problem, however, some haven't found it ...


0

Able to fix the problem. Checked the logs - dmesg ; I changed the default gateway on /etc/resolv.conf Added nameserver


1

You can try to use some dynamic dns services like noip.com Then You can access resources by dns name, which will changing according to Your ip.


0

There might be other causes, but I have seen this happen with older network cards that did get firmware uploaded by there driver. RDuring reboot (without complete poweroff) the card would not be completely reinitialised and could never be restart into (dual boot) Windows and would fail some of the time is rebooted into Linux. With that system I just got used ...


1

This one will give you your public IP, remove /ip part to see more info. $ curl ipinfo.io/ip


-1

There are a configuration example here: Configure GRUB I use the following entry in my menu.lst to boot my kernel. title Network Boot # Obtain an IP address for this card dhcp # I don't have DHCP setup to deliver the TFTP server's IP address, # so I set it manually this is my build machine tftpserver 192.168.0.50 # The root device is the network ...


0

This command creates metadata cache for downloads: sudo dnf makecache To instruct dnf to be more resource-aware and to terminate immediately if it’s too soon after the last successful makecache run we add timer to it: sudo dnf makecache timer


2

The kernel on OpenBSD via in6_ifattach_linklocal, as found by a fgrep -rl fe80 /usr/src 2>/dev/null search.


0

It is doable with traffic control tc and iptables ... -m owner --uid-owner user1 -j MARK --set-mark number. And run application as user1. It is possible to redirect specific packets to different network interfaces. You could also shape traffic to use single wired connection and use different applications with different speed limits.


1

I can think of two ways you can do it. One clean way is to use separate network namespaces, using ip netns. Put your game and wired interface into one network namespace and leave everything else in the default one. The trouble is that none of the tooling and network configuration user interfaces will help you with this. For example you'd probably end up ...


0

If bridged mode doesn't work due to it not being an open wi-fi access point then go with NAT and create a forwarding rule in the main virtualbox interface for the virtual machine


2

netstat shows you that something (probably Labview) is listening on that port. Your iptables line will block packets from outside the computer arriving at that port, and so there should be no problem. The program is listening, so you see that the port is open when executing netstat, but packets cannot arrive from outside, and so one cannot access the port ...



Top 50 recent answers are included