Tag Info

Hot answers tagged

44

Looking at the RFC for TCP: RFC 793 - Transmission Control Protocol, the answer would seem to be no because of the fact that a TCP header is limited to 16-bits for the source/destination port field.      Does IPv6 improve things? No. Even though IPv6 will give us a much larger IP address space, 32-bit vs. 128-bits, it makes no attempt ...


24

You can use SSHFS to mount a remote home in a local folder. Has the advantage of using the current infrastructure and low latency of local vim.


23

Apart from not getting detailed information about your test setup the main problem seems to be, that you use a message size of 64 byte. This is far away from the usual MTU of 1500 bytes and makes UDP highly inefficient: while TCP merges multiple sends into a single packet on the wire (except if TCP_NODELAY is set) to make efficient use of the link, each UDP ...


17

From man 1 traceroute: -m max_ttl Specifies the maximum number of hops (max time-to-live value) traceroute will probe. The default is 30.


16

You can edit remotely with a local vim or gvim. :e scp://me@someplace.else/~/myfiles/whatever.file scp is a secure copy protocol. It authenticates the same way as ssh, so your ssh key needs to be available, etc. There are various other protocols supported (see :help netrw-externapp) but scp is probably the easiest if you are already using ssh to the ...


15

NOTES NIC device handles The examples below assume that the network interface is a wireless card named wlan0. Adjust this bit in the examples for your particular situation. For example if it's a wired NIC card, then it's likely eth0. IPv4 - (Internet Protocol version 4) Also these examples are returning the IPv4 address. the "dotted quad" that most ...


12

I wrote a program a while ago that does this: tzupdate. You can see what it would set your timezone to (without actually setting it) by running tzupdate -p: $ tzupdate -p Europe/Malta You can set it for real by running tzupdate as root. $ sudo tzupdate Europe/Malta $ date Thu 12 Sep 05:52:22 CEST 2013 This works by: Geolocating your current IP ...


12

Some (but not all) reasons: In order to host multiple SSL sites as already mentioned Because you may be consolidating services from multiple hosts and you need to preserve the addresses In order to use an IP address that can later be transferred to another host To compensate for a host that's down at that moment by adding its IP address to another one If ...


11

ifconfig is from net-tools, which stopped being developed in '99, though some distros still patch it internally. It also still uses ioctl for network configuration, which is an ugly and less powerful way of interacting with the kernel. A lot of changes in Linux networking code, and a lot of new features aren't accessible using net-tools: multipath routing, ...


11

The kernel lists them by name in /sys, both separately in (e.g.) the tree of PCI devices -- although finding them there if you don't know where they are to start with is not simple -- and together via symlinks in /sys/class/net. E.g.: > ls /sys/class/net em1 lo wlp6so Another example: > ls /sys/class/net lo p6s1 wlan0 If you are not sure which is ...


10

I have drawn some sketches The machine, where the ssh tunnel command is typed is called »your host«. Introduction local: -L Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. ssh -L sourcePort:forwardToHost:onPort connectToHost means: connect with ssh to connectToHost, and ...


10

Special (and AFAICT) slightly under-documented behaviour in iputils ping: you ping yourself. If you ping 0 this is what happens (heavily edited and commented for clarity): if (inet_aton(target, &whereto.sin_addr)) == 1) { // convert string to binary in_addr } // inet_aton returns 1 (success) and leaves the `in_addr` contents all zero. if ...


10

Sorry but I got it myself. I had to flush the device before bringing it up: alix:~# ip addr flush dev eth1


9

When some location is further than 30 hops, it probably means simply that last hops does not replies when TTL exceeds. Unless, it's a story: $ traceroute -m100 216.81.59.173 traceroute to 216.81.59.173 (216.81.59.173), 100 hops max, 52 byte packets (...) 14 episode.iv (206.214.251.1) 173.387 ms 171.638 ms 171.201 ms 15 a.new.hope (206.214.251.6) ...


9

In a screen or tmux session, set up a shell that will reverse your changes after a delay. I don't know anything about iptables, so can't help with that, but something like this has saved my proverbial bacon on numerous occasions while altering live firewall configs on FreeBSD: # In one `screen` or `tmux` window % sleep 60 && <command to reverse ...


8

Those are TCP connections that were used to make an outgoing connection to a website. You can tell from the trailing :80 which is the port that's used for HTTP connections to web servers, typically. After the 3 way TCP connection handshake has completed the connections are left in a "wait to close" state. This bit is your local system's IP address and ...


8

That's how the ping command works. You can control it using the count switch, -c. Example $ ping -c 2 skinner PING skinner.bubba.net (192.168.1.3) 56(84) bytes of data. 64 bytes from skinner.bubba.net (192.168.1.3): icmp_req=1 ttl=64 time=1.00 ms 64 bytes from skinner.bubba.net (192.168.1.3): icmp_req=2 ttl=64 time=1.13 ms --- skinner.bubba.net ping ...


8

That's a change in how now udevd assigns names to ethernet devices. Now your devices use the "Predictable Interface Names", which are based on (and quoting the sources): firmware/bios-provided index numbers for on-board devices firmware-provided pci-express hotplug slot index number physical/geographical location of the hardware the interface's MAC address ...


7

From the wikipedia page, 0.0.0.0 excerpt In the Internet Protocol version 4 the address 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non applicable target. To give a special meaning to an otherwise invalid piece of data is an application of in-band signaling. From the wikipedia page, Default Route. excerpt ...


7

0.0.0.0 has the specific meaning "unspecified". This roughly translates to "there is none" in the context of a gateway. Of course, this means that the network is locally connected, as there is no next hop. As a destination, 0.0.0.0/0 is special: if there are no network bits, there can't be anything in the network number either. So, it's naturally ...


7

The traditional answer is to run the program as another user and use iptables -m owner. That way, the network configuration is shared. However, with the advent of namespaces, there is an easier way. With namespaces, you unshare the network, then create a virtual network link if you need limited network access. To share unix domain sockets, all you need is ...


7

The only straightforward way I know of doing this is to use the wall command. This can be used to omit the sender's identification, via the -n switch. Example $ sudo wall -n hi Remote broadcast message (Fri Nov 8 13:49:18 2013): hi using echo This alternative method is more of a hack, since it isn't done through an explicit tool but you can echo text ...


7

The host command doesn't check the hosts file. From the manpage: host is a simple utility for performing DNS lookups. If you want to test lookups while respecting the hosts file, then use ping or getent. $ tail -1 /etc/hosts 127.0.0.1 google.com $ ping -c1 google.com | head -1 PING google.com (127.0.0.1) 56(84) bytes of data. $ getent ahosts ...


7

Each network adapter on linux has a sysctl boolean parameter accept_local (/proc/sys/net/ipv4/conf/eth0/accept_local). Try setting it to 0 for all adapters involved (additionally, you may need to modify your routing table to suit your test setup). Also, make sure that rp_filter (/proc/sys/net/ipv4/conf/eth0/rp_filter) is enabled (not 0). Reference: ...


7

There are a few ways. The modern way: use ip. ip -s link The output is pretty self-explanatory. The old way: use ifconfig. ifconfig -a Also self-explanatory, but not as trivial to parse. The /proc way: cat /proc/net/dev Look at the proc(5) man page for more information (there really isn't much). This is a bit hard for human eyes, but very easy to ...


7

Method #1 - from NetworkManager's Applet Try disabling the wireless networking under the Network Applet that's accessible from under the icons in the upper right of your desktop. ...


7

Look at the output of the last command and anything with an IP address or hostname instead of a blank space came in over the network. If sshd is the only way of doing that on this system, then there you go. Alternatively (if this is Linux), you can check /var/log/secure where sshd will usually keep track of connections made even if they don't result in ...


7

Yes it's entirely possible that your firewall is blocking the traceroute from being successful. To understand why this is failing it's best to consult the traceroute man page. excerpt This program attempts to trace the route an IP packet would follow to some internet host by launching probe packets with a small ttl (time to live) then listening for an ...


7

The simplest method I know to list all of your interfaces is ifconfig -a EDIT If you're on a system where that has been made obsolete, you can use ip link show


7

Assuming I'm reading correctly, your problem isn't that you want to know how to change the IP address, it's that you want to prevent changing it to something that stops future access. This isn't necessarily a technical problem, it's a quality issue. However, you might try something like this (you'll need to work out how to achieve it in detail). Write a ...



Only top voted, non community-wiki answers of a minimum length are eligible