New answers tagged

0

I have found the solution of my problem. When Android starts it makes flush of all rules. The code that does this work I found in file system/netd/RouteController.cpp function int flushRules(). When I blocked execution of code of this function I haven't seen message about NFS connection loose anymore. // Returns 0 on success or negative errno on failure. ...


2

ss uses the AF_NETLINK socket layer to talk to the kernel. This is a lower level protocol but allows for data to be transferred very quickly and in large chunks. A quick strace on CentOS 7 shows it sets the transfer window to be 1Mb.


1

Below auto lo add auto eth0. Then, below that, add alow-hotplug eth0 Your final /etc/network/interfaces should read: auto lo auto eth0 allow-hotplug eth0 iface eth0 inet6 auto Reboot for good measure. see: man interfaces for more info :)


3

That last column is the process (process # / process name) and not the port. The port is in the fourth column, in your case it shows two ports open ulistproc and https. Both ports are open on the address "*" which means all addresses on your machine (that's normal default for most daemons, there's a config to limit it). If you want the actual port numbers ...


1

As root, type netstat -pat | grep httpd (or grep apache depending on your distro)


1

You cannot define eth0:0 as the origin of your ICMP packet with the pingcommand; as said in previous comments, the routing rules will be applied, and if routing to other networks, the eth0 address will be used. You can however, spoof an ICMP packet having eth0:0 IP address as origin with the hping3 command as in: sudo hping3 -1 8.8.8.8 -a 192.168.2.96 ...


0

As soon as you ping an address in your network 192.168.2.0/24 the eth0:0 address will be used as source. Otherwise, the Interface address of eth0 will be used.


2

Try: # nmcli con add con-name "static-ens32" ifname ens32 type ethernet ip4 xxx.xxx.120.44/24 gw4 xxx.xxx.120.1 # nmcli con mod "static-ens32" ipv4.dns "xxx.xxx.120.1,8.8.8.8" # nmcli con up "static-ens32" iface ens32 Next, find the other connections and delete them. For example: # nmcli con show NAME UUID TYPE DEVICE ...


0

An individual IPv4 address is /32. /24 designates a network, which in this case would be XXX.XXX.120.[0-255]. Try changing the ipv4.address entry to XXX.XXX.120.44/32 and see what happens. If that doesn't work, I have to then ask the same question asked in comments - is NetworkManager a requirement, or can we configure the address using other means?


0

The laptop should be set up to allow forwarding and to masquerade packets to the internet, and the clients should be set up to use the laptop as gateway. Forwarding may involve flipping the kernel flag /proc/sys/net/ipv4/ip_forward to 1 from its default 0, and perhaps make this happen at reboot by appropriate editing of /etc/sysctl.conf. Though these ...


1

Each network namespace is a separate logical copy of the network stack. So you need to treat a network namespace as if it was a separate machine. To connect a new machine to the internet via your current machine you would Select an unused network card in each machine (or install a new one). Connect them together with a network cable. Choose between ...


0

Network namespaces may be an option. They are essentially independent instances of the network stack so they should at least in theory be able to separate two interfaces. Last time I tried playing with them though I couldn't get thing to work properly.


2

Put a script on: /usr/lib/pm-utils/sleep.d Mark it as executable with the commands you want to execute, and configured with the condition resume. #!/bin/bash case "$1" in resume) /etc/init.d/networking restart ;; esac


0

From the command line, you would simply add the following to your /etc/openvpn/server.conf: push "route 172.17.0.0 255.255.255.0 172.27.232.1 1" The configuration is described in more detail here. But, to answer question about making the change through the OpenVPN AS WebUI, I think you will have use the "Yes, using routing (advanced)" option shown in ...


0

I believe you need to add the following to your server's openvpn.conf file: push "route 172.17.0.0 255.255.255.0 172.27.232.1" the restart things. The default config file has a similar line commented out with a ; as an example.


0

It is my first time with ip route but I did this: ip route del all routes and then ip route add default via 192.168.0.1 dev wlp3s0 mtu 1492 to add a default route through my router. I hope I didn't miss anything important.


0

There's a knowledge base article on this exact topic -- http://kb.vmware.com/kb/2020567 (and I'm guessing it was written by VMware in response to your request). Essentials are: Receive side scaling (RSS) and multiqueue support are included in the VMXNET3 Linux device driver. The VMXNET3 device always supported multiple queues, but the Linux driver used one ...


0

Ifdown ethx ; ifup ethx Should do it "service networking restart" isnt working in ubuntu, because other services are dependent on it, theres a more complete answer here http://askubuntu.com/questions/561046/why-is-service-networking-restart-not-working-in-14-04


1

Take a look at the nc command. It is basically a cat that works across the network. You can use it to create client/server scripts that do all kinds of things.


0

I faced similar problem. I had ubuntu as guest and Windows 7 as host. I selected NAT and Bridge both but could not succeed. I, finally selected NAT, and checked my browser proxy settings. It was a lot of hit and trials but finally I'm happy. Thanks to somebody's suggestion. I was going mad & literally had to track packets using traceroute. To change ...


0

I encountered this issue when my wifi device was in 'Access Point' Mode. I changed mode to 'client'. Then command started working perfectly. Command works with 'ad-hoc' mode as well.


0

Thanks for malyy's help. Here is my test code. check_ifup.c #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/if.h> int main(int argc, char* argv[]) { if (argc < 2) { printf("Usage: ./check_ifup interface_name\n"); return ...


2

man ifconfig says: Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. If no arguments are given, ifconfig displays the status of the currently active interfaces. If a single ...


0

You are probably using Network-Manager so that would use: sudo service network-manager restart When in doubt try: sudo ifdown <interface> sudo ifup <interface> That should work, if doing this over ssh combine the commands: sudo ifdown <interface> && sudo ifup <interface> Give that a try. Looks like this issue is ...


2

Ok, apparently I do need openssh-server on Computer A, even though I am in the same network. I read that wrong somewhere else then.


0

This doesn’t provide the high availability for your data/files, unless you setup some scheduled jobs using rsync like tools and sync between your local directory and the NFS-mounted directory. You can have a look at Lsyncd daemon.


1

Oopss! So I guess NFS, when set up correctly ^_^, does infact do a two way syncronization. The problem was that my /etc/fstab was not set up correctly so while I had a /home/ubuntu on Server A and a /home/ubuntu on Server B, I was not mounting A to B, so they changes I made to B were not reflected on A!


1

The IPTABLE rules you created will reject all the traffic, remove them. Those apache rules are useless as well. I think the only way to do what you want is to add 3 virtual network adapters to your Linux server, then each adapter would have a valid external IP address. You would configure the DNS to point each domain name to point to one of the 4 IP ...


0

I would start by measuring the speed of the dumbest TCP stream possible. A plain FTP (not SFTP or FTPS) would do it. If for some reason FTP doesn't work (firewalls can be an issue), try netcat. FTP just literally throws bytes at a socket. As long as it's using the full TCP packet size, and we're talking about a single file, you can't use TCP more ...


0

SCP is very simple tool to simple copy files back and forth. It was not designed to super-fast speeds and it has really small buffers on both sides. If you aim for performance, you should use sftp or rsync. About the speed measures, lets draw some diagram: [host A] --- ??? mbit --- [host B] \ / \ 300 mbit ...


0

I had this problem on a machine running a standard Ubuntu 14.04 install. The connection refused message can be misleading: It turns out that all that was required was to install the nfs-common package.


0

/etc/iptables/rules.v4 is not updated when you issue an iptables command, you have to update it yourself like: iptables-save > /etc/iptables/rules.v4


1

So after a little bit more research I've determined why this is happening. I'm using the default Ubuntu and Debian templates to create the containers and their networking is set up so as to use DHCP to ask for a IP from the the router. So initially the static IP is set using the lxc.container.config and then when the container starts it queries the router (...


2

You can check the setting for an interface, say eth0, with ethtool: $ sudo ethtool eth0 | grep Wake Supports Wake-on: pumbg Wake-on: g From the ethtool man page you can disable it with $ sudo ethtool -s eth0 wol d Where this gets configured depends on what you use to start your network. archlinux gives some examples (for turning it on, but the ...


0

Well as a last resort, I found an old 10/100 ethernet card from a windows 98 PC, and installed it in the server. After configuring it, I have had no more errors, over about 30 GB of data. I guess the built-in ethernet chipset didn't work well with ubuntu. Or I had somehow configured it incorrectly.


0

When I originally started learning about computing, the RFCs were also one of my points of contact. My theory was that if I could understand the underlying network rules (of TCP, DNS, HTTP, etc) then I would be much better prepared to fix things when they went wrong. Or at the very least be able to pin point why they went wrong. An RFC is the rulebook that ...


1

This value is set by Suricata. It uses "max-pending-packets" from your suricata.yaml and multiplies it by 4 int r = NFQInitThread(ntv, (max_pending_packets * NFQ_BURST_FACTOR)); if (r != TM_ECODE_OK) { Where NFQ_BURST_FACTOR is 4. See https://github.com/inliniac/suricata/blob/71a3c4caac22b475c09ee2f082f11d443dc02cc0/src/source-nfq.c#L712 You can increase ...


2

Windows clients automatically register their names in DNS when part of Active Directory (which seems to be true in your case). This uses a process called Dynamic DNS (DDNS). The easiest way to register linux machines with a Windows DDNS will be to use Samba to join your linux machine to Windows Domain. This would require the rights to join Windows Domain. A ...


0

So, to resolve the comppi.ns.exampledomain.com on your network, you will need help from your DHCP server admin and here is why. At the bottom of this answer the Linux option Windows environment Unless additional software is installed, a LINUX client is not AD (Active Directory) aware. So, must rely on DHCP server to update the DNS Server on a ...


1

Make sure you don't set the default gateway in the netctl files or in any other files. If using DHCP to get IP addresses make sure to disable getting the default gateway (dhcpcd -G). Running "ip route ls" should not show any default gateways. Only "ip route show table all" would list the default gateways for each ISP table. Something like this: default via ...


0

You could check what its waiting channel is with some frequency. The average waiting channel you encounter should be indicative of where the time is spent in the process. E.g.: Take downloading a Ubuntu image as a typical net-io-bound process: $ url='http://mirror.dkm.cz/ubuntu-releases/16.04/ubuntu-16.04-desktop-amd64.iso' $ wget "$url" & pid=$! ...


0

It could be a bug in your SSH. There have been several examples of this over time. (You should definitely post the exact versions used at either end). http://www.alcatelunleashed.com/viewtopic.php?t=25294 I can't work out why a remote network path would be more reliable, or any suggestion to work on that. It can be caused by buggy network boxes though......


1

The ping output shows that the network connection actually works, and that it's just DNS, and that's not surprising given the content of /etc/resolv.conf. Now that says that's it's generated by resolvconf, I've tried to use that, but never got to terms with it, so I'm probably not the best to give advice. The right thing to do is to figure out what should ...


1

Setting up a bridge is extra work. Someone has to do this work. Since some containers should be bridged and others shouldn't be bridged, container utilities don't systematically set up a bridge. It's very common for a container not to be bridged. The point of a container is to isolate the container from the rest of the world. This often means that the ...


3

There's ntop and nethogs. And on linux there's iotop for io.


3

Since Kali Linux is based on Debian, these instructions (from this page) should help: Add a "non-free" component to /etc/apt/sources.list, for example: # Debian 8 "Jessie" deb http://httpredir.debian.org/debian/ jessie main contrib non-free Update the list of available packages and install the firmware-atheros package: # apt-get update && apt-...


2

If you have a graphical desktop environment (like Gnome) you can use Nautilus (the file explorer) and use the address bar. You might need to use the 'toggle location entry' button or menu view option to make the address bar visible. Once you have the address bar you can enter the URI to the samba share using: smb://host-or-ipaddress/sharename When you ...


0

The LinkDelay seems to have solved the problem.


1

Debian Jessie is more than a year old, and that means Wheezy has been oldstable for more than a year. Unless you have a very good reason you should upgrade. Typically your box does not need to talk to the modem, it's just there and your box talks to the ISP's equipment. We'll need to know your ISP before we have any chance to answer how to configure your ...


0

On Ubuntu at least, there is the /proc/net/wireless file that contains details about the Wi-Fi interfaces. Which outputs for me: $ cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus | link level noise | nwid crypt frag retry misc | beacon | 22 wlp5s0: 0000 36. -74. -256 0 ...



Top 50 recent answers are included