Testing IPv4 connectivity
If your network lets pings through, try pinging 22.214.171.124 (a server run by Google).
if ping -q -c 1 -W 1 126.96.36.199 >/dev/null; then
echo "IPv4 is up"
echo "IPv4 is down"
Testing IP connectivity and DNS
If you only want the test to succeed when DNS is also working, use a host name.
if ping -q -c 1 -W 1 google.com >/...
I highly recommend against using ping to determine connectivity. There are too many network admins that disable ICMP (the protocol it uses) due to worries about ping flood attacks originating from their networks.
Instead, I use a quick test of a reliable server on a port you can expect to be open:
if nc -zw1 google.com 443; then
echo "we have ...
Let's call the machine that has internet access hasinet and the one that doesn't noinet.
If you can make an SSH connection from noinet to hasinet
You can do this easily with OpenSSH's built-in SOCKS proxy. This command will set up a SOCKS proxy on noinet listening on port 1080:
noinet$ ssh -D 1080 hasinet
If you can only make SSH connections to noinet ...
I assume that users A and B are using the same Linux machine(s) where you are the administrator. (It's not completely clear from your question. If A and B are have their own computers which they are administrators on, it's a completely different problem.)
The following command will prevent the user with uid 1234 from sending packets on the interface eth0:
One method of annoymizing HTTP traffic from the command line is to use tor. This article discusses the method, titled: How to anonymize the programs from your terminal with torify.
General steps from article
You can install the tor package as follows:
$ sudo yum install tor
$ sudo apt-get install tor
Edit this file /...
You can get somewhat close by querying the public whois database. It'll likely be somewhat difficult to "productify" to handle every possible case, but a reasonable approximation might be:
$ whois a.b.c.d | grep -iE ^country:
where a.b.c.d is the IP address in question.
whois is often installed by default, so this meets a reasonable interpretation of your ...
Use another IP locator than ifconfig.me that provides with that information like:
Not available anymore as of 2015-03-09
curl -s 'http://geoiplookup.net/geoapi.php?output=countrycode'
curl -s 'http://geoiplookup.net/geoapi.php?output=country'
(see the API for details)
curl -s http://whatismycountry.com/ |
sed -n 's|.*,\(.*\)&...
check iftop and nload
iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "why is our ADSL link so slow?".
nload is a console application which monitors network traffic and bandwidth usage in ...
Installing Archlinux as a Guest on Virtualbox
March 15, 2013 11:54 pm
Essentially, you can follow this guide, but there are several additional steps to take.
To fix the network:
/usr/sbin/dhcpcd enp0s3 to check that you can load the dhcp client.
ln -s '/usr/lib/systemd/system/dhcpcd@....
Rather then make this block using /etc/hosts I'd suggest using a browser addon/plugin such as this one named: BlockSite for Firefox or StayFocusd for Chrome.
But I want to really use /etc/hosts file
The thing to remember is that getting used to something new, like a new operating system, is stressful.
Unfortunately, I haven't got freeBSD in front of me at the moment, but assuming that there is a driver for your ethernet card (which there is in all likelihood), the first thing you should try at a command prompt is,
This will show you what ...
In a terminal:
This will provide a clean install for the client, but leave all your games untouched.
Be aware that although this will "fix" your connection issue, it's akin to buying a new car to fix a flat tire. There is probably a simpler and more elegant solution, but I wasn't able to find one when I had this problem.
I made a script that uses multiple ways to check internet connection (ping, nc, and curl, thanks to Adam Katz, Gilles, and Archemar). I hope someone finds this useful. Feel free to edit it to your liking/optimize it.
Checks your gateway, DNS, and internet connection (using curl, nc, and ping).
Put this in a file then make it executable (Usually sudo chmod +...
I solve the problem by using Amrish instructions at Ask Ubuntu Stack Exchange, i.e. by using the following code:
sudo rm /etc/resolv.conf
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
sudo resolvconf -u
From your output, you are not able to reach the destination. The * denotes a timeout.
traceroute command shows the path to your destination. packets send to will pass through the routers and you receive a response obeying the time to live (TTL) value for each packets. the * denotes a timeout as a response from the intermediate routers that says the packet ...
Uses the same antenna.
Currently most software doesn't allow to be in client and AP mode at the same time.
Wireless is a half-duplex protocol, except for some really new bleeding edge stuff. The radio can only transmit or receive at one time, it cannot do both at the same time.
Going with point 3, if any software was developed to allow both client and AP ...
If you just see Loopback interface with ifconfig command
This will list all of your adapters on VM OS.
Lets assume that you have eth0 as your primary adapter, then simply write following command:
After interface goes up, you'll be able to see it listed in ifconfig output and you should be able to ping outside world.
Outgoing ICMP (ping) is probably blocked by your firewall or gateway. That you are able to browse the Internet does not need ICMP (ping) to be working. You also might have a proxy configured which allows you to only surf the web.
This is definitely feasible. Many of us were running mixed, load-balanced broadband configs for corporate years ago and they worked really well. Many probably still do!
You can do it in a number of ways, including using iptables rules and/or iproute2 (ip(8) command) to setup policy routing.
The load balancing is not done at the packet level, but at the ...
They're in the $http_proxy, $https_proxy and $ftp_proxy environment variables. Also, $no_proxy contains a comma-separated list of host patterns for which no proxy is used. For example:
ipinfo.io has nice JSON API for using from command line:
$ curl ipinfo.io
"hostname": "No Hostname",
"region": "Ha Noi",
"org": "AS18403 The Corporation for Financing & Promoting Technology"
I just ran into the same problem. Solution turned out simple:
systemctl start dhcpcd.service
Everything (ping, pacman, etc.) started working after that.
BTW: # systemctl enable email@example.com has a typo. Should be enp0s3. Explains your No such file or directory error ;)
The guidance on the Wireshark documentation suggests capturing the entire contents of the packet using this command:
$ tcpdump -i <interface> -s 65535 -w <some-file>
Looking at the man page for tcpdump the guidance there suggests that -s0 should be equivalent:
Snarf snaplen bytes of data from each packet rather than the default
SOLVED this issue on for myself on my macbook running Kali Linux. Go back into the network settings on virtual box, make sure it says 'Nat' and below that click advanced settings. Make sure "cable connected" is selected and start up your Kali Linux! Bam, you know have internet.
I'd highly recommend you use RSA keys rather than passwords for remote SSH logons.
Second, you'll want to install Fail2Ban or something similar to discourage brute force breakin attempts (although again, disabling password authentication in favor of RSA public/private key authentication for SSH access would make this a mostly moot point)
Third, it's ...
it is very possible to use hotspot and browse the internet with the same wifi card at the same time (simultaneously).i have been using it for sometime now.ideapad 100s 141br with card intel dualband 3160,ubuntu.
the most simplest way i found was to use an app called create_ap in github. it works perfectly.
first you need these installed; util-linux, bash, ...
Something like this could work for you:
curl -sIkL http://repo1/xyz/LATEST | sed -r '/filename=/!d;s/.*filename=(.*)$/\1/'
Take a look at man page curl(1) for the options. The interesting one is -I, --head.
Explanation as requested per comments:
The idea is to request the HTTP response header only.
Therefore the -I options is used. -s silents curl to ...
Spoofing your MAC-Address is relatively simple:
Save your MAC for a future reset
Temporary disable your interface to change your MAC
Set your new, arbirtray MAC
Enable your interface again
Using different tools:
ip link show <interface> &> ip_savehafen.log
sudo ip link set dev <interface> down
sudo ip link set ...