New answers tagged

1

unless you have a centralized or very consistent tracking of usernames/groupnames versus UID/GID definitions, it is unavoidable to see usernames as owners of the file on some places while others just display numbers like 99 99, And despite what you see and think, file ownerships are based on those numbers, not the usernames. Lets say, you are masi:masi ...


0

If you do not have an account (password) on the receiving host you can use woos (web offer one stream): woos file-or-directory ... http://fex.belwue.de/fstools/woos.html


0

For Synaptic Package Manager you need to configure proxy. Open Synaptic -> Preferences -> Network, and configure your proxy there. For terminal Use terminal to open /etc/environment using a text edit app as superuser - e.g. in terminal type sudo gedit /etc/environment (enter password when asked) Add the following lines to the text document that ...


0

After hitting with my head against the walls during three days, I decided to change the source code of nethogs in order to print the way I need. If someone needs: https://github.com/hdlopesrocha/nethogs The result is something like this: NetHogs version 0.8.2-SNAPSHOT TIME PID USER PROGRAM DEV SENT RECEIVED Ethernet link detected Waiting for first packet ...


0

To monitor wlan0 sudo nethogs wlan0 You can monitor network bandwidth of both eth0 and eth1 interfaces nethogs [option] eth0 eth1 options : -d delay for refresh rate. For example, to set 5 seconds as your refresh rate, then type the command as. sudo nethogs -d 5 -h display available commands usage. -p sniff in promiscious mode (not ...


2

Set the default route to the next hop on eth2 and a separate route for 111.222.111.222. Let's assume that 1.2.3.4 is the next hop for eth1 then the command would be: ip route add 111.222.111.222/32 via 1.2.3.4


0

The solution to this question is to join linux computers to Windows 7 workgroups which is described in this URL http://askubuntu.com/questions/571685/ubuntu-14-04-lts-windows-7-sharing I wish to commend Teoma for helping me to answer this question.


0

At it's most basic; it allows traffic in Both directions if you first request something. You probably can't Ping because the State isn't allowing any return data. See: User-land states


0

Add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it. Replace myssid and mypsk with your SSID and PSK network={ ssid="myssid" psk="mypsk" } Add entries to /etc/rc.conf to configure the network on startup: wlans_ath0="wlan0" ifconfig_wlan0="WPA SYNCDHCP" Restart the computer, or restart the ...


2

Those 2 links explain things quite well, it's just a matter of double checking everything. Here's a couple things I do.. For Ubuntu shares: You should run "sudo apt-get install samba" on Ubuntu to get all the necessary components. Then you can configure the Ubuntu shared folders in /etc/samba/smb.conf & restart samba "sudo service samba restart" I have ...


1

With commands: https://wiki.debian.org/BridgeNetworkConnections (Wireless in mid) Install bridge-utils: apt-get install bridge-utils (ubuntu) aptitude install bridge-utils (debain) nano /etc/network/interfaces add below lines pre-up iwconfig wlan0 essid $YOUR_ESSID (wifi name) bridge_hw $MAC_ADDRESS_OF_YOUR_WIRELESS_CARD(34:e6:ad:08:67:5e) ...


2

It seems what you want can be done easier than with ebtables (redirect target). If you want all packets with a certain IP target address to be sent to a certain MAC address then you can simply create a static ARP entry for this address: ip neighbour add 1.2.3.4 lladdr 11:22:33:44:55:66 dev eth0 nud permanent


0

To list the currently available network connections: command line nmcli con show the output is somthing like:


0

Somehow sysctl net.link.tap.up_on_open=1 wasn't set when I thought it was. All good now.


1

Run the command sudo ifconfig. It should return a list of connections, one of them is going to be something like tun0 which is your VPN tunnel. In the tun0 block, there will be an inet addr xxx.xxx.xxx.xxx. Take that inet addr and add it or edit your .rtorrent.rc file (which is probably in your /home directory) such that it reads: bind = xxx.xxx.xxx.xxx ...


1

In general case your network can be configured in the way, that you simultaneously have wireless and wired connection. E.g. part of your routes goes via wireless connection and the other part goes via wired. I would detect it in the following way: Identify the address which might be an indicator of network connection type (e.g. public google dns ...


0

After some research it is clear that dividing the available bandwidth percentually is not possible. There is no way for the system to know the currently available bandwidth.


0

You will only see private IP addresses like that when you're behind a NAT router. These are generally used at homes or small offices as they save the rather scarce IPv4 addresses from being used up and as a side-effect also help protect consumer devices from network based attacks. Dedicated servers are directly on the Internet so that they can be accessed ...


1

You can use the ip tool to spoof your MAC address. Here is an example for eth0: ip link set dev eth0 down ip link set dev eth0 address 01:01:01:01:01:01 ip link set dev eth0 up Source: https://wiki.archlinux.org/index.php/MAC_address_spoofing


0

Best way I found for that matter is to print the dhcp configuration files, found on /var/lib/dhcp/dhclient.(interface).leases, and look for the routers definition there


0

There are Tunnels and Port fowardings. You are talking about the second of them. Just not to confuse terms, ok? (1) For Local port forwarding the forwarded combination host:port on local computer is blocked (accepts connections). On the other side remote_host:remote_port is available for different connections. The data are send after you start the ...


1

netstat and lsof or fuser are typical programs to view what ports are opened by what (though may require root or such access, depending, and vary by flavour of unix). A shared destination port is fine. It may help to work through e.g. Beej's guide to networking to understand the system calls involved. If the client has not connected, then any ports it ...


1

On a Linux client, you may view listening ports with netstat -lnp |less. Within an ssh session, you can press enter twice, then type ~#. That will list the currently forwarded ports for that session.


3

I hope this is your environment. Host 1 - 1 Bridged NIC Network Host 2 - 1 Bridged NIC Network Host 3 - Local NIC Network Host 4 - Local NIC Network If you add 1 more NIC to Host 1 and Host 2 respectively and then assign local IP to them as in Host 3 and Host 4. All your 4 Host can communicate with each other. The Resulting environment will be like ...


0

Quoting By default, the IPv4 policy in Linux kernels disables support for IP forwarding. This prevents machines that run Linux from functioning as dedicated edge routers. I made a test of redirection of the port 80 to a VM with PREROUTING without ip_forward enabled and it didn't work. When enabling ip_forward it success. So as I saw, the ip_forwarding ...


0

Another option is 'iproute2' which appears to be a mature and widely available traffic routing/shaping tool. I found it as an RPM (probably many other packages too, I didn't look). As of this writing, the most recent version was 4.4.0, built on 25 Jan 2016. Looking over the configuration syntax, it appears to be relatively simple (though not as simple as ...


0

The accepted answer is correct. Modification of network from inside of a jailed environment is not allowed. It defeats the purpose of jail. However, the solution to the original problem is to configure jail host. You need to configure firewall with NAT enabled on the jail host. Firewall shall allow outbound traffic from jailed IP address. EC2 firewall ...


1

Using route route add default gw {IP-ADDRESS} {INTERFACE-NAME} example: route add default gw 192.168.1.2 eth0 OR use hostname such as dsl-router: route add default gw dsl-router eth0 Or use the ip command (newer syntax) to route all traffic via 192.168.1.254 gateway connected via eth0 network interface for example: ip route add 192.168.1.0/24 dev ...


3

ifconfig is deprecated on Linux and furthermore, it's the wrong tool for the job. To set the default gateway on Linux use the ip command as follows: ip route add default via <host> dev <dev> # e.g. ip route add default via 192.168.0.101 dev eth0


3

ifconfig is not the correct command to do that. You can use route like in route add default gw 192.168.0.254 for exemple. And if route is not present, and ip is, you can use it like this : ip route add default via 192.168.0.254 dev eth0 assuming that 192.168.0.254 is the ip of your gateway


2

Here's not so concise bash script: #!/bin/bash v4dec() { for i; do echo $i | { IFS=./ read a b c d e test -z "$e" && e=32 echo -n "$((a<<24|b<<16|c<<8|d)) $((-1<<(32-e))) " } done } ...


0

An awk script to do this for an ip addr in a network. I guess a little more would be needed for the network in a network part. ipcalc -b 10.0.0.0/8 |awk -f check_ip.awk ip="10.1.2.3" ip is in range script -- { if ($1 == "HostMin:") { split($2,add_min,".") } else if ($1 == "HostMax:") { split($2,add_max,".") } } END{ split(ip, ip_addr, ".") ...


2

There is another option which allows more control about the ARP handling. Have a look at arp_ignore.


1

You're more than likely running into a snag on the permissions. I usually leave authorized_keys to be 400 (though 640 will suffice). ~/.ssh should be 700. id_rsa I keep 400 as well. The less permissions the files have, the more ssh will be fine with them. If you use the -v switch on ssh, it will tell you this issue. /var/log/secure will also tell you ...


0

Personally, I wouldn't use the Pi's for this. I'd use 2 Mikrotik devices. The Mikrotik's can handle multiple ssid's but only one 2.4hgz channel as you have to use virtual ap's in the wifi model. It also has a vpn server and client so you can use L2TP/IPSec over the unsafe link and it has switch chips. Internet--RB2011--(unsafe link-cat6)--RB2011 ...


0

Comment out one gateway. The one without Internet connection: #gateway 192.169.1.10 Standard configuration can have only one and your route shows it is the internal gateway used right now. If there are other networks behind this gateway add this: post-up /sbin/ip route add 192.169.X.0/24 via 192.169.1.10 post-down /sbin/ip route del 192.169.X.0/24 via ...


0

The fix is, editing sudo vi /etc/modprobe.d/ath9k.conf with: options ath9k nohwcrypt=1 Then restart. As per "How to fix Atheros AR9285 / AR9287 wireless problems in Ubuntu Natty Narwhal?" http://www.htpcbeginner.com/how-to-fix-atheros-ar9285-ar9287-wireless-problems-in-ubuntu-1104/ I noticed that my wireless card was not working. Wireless ...


3

All you need is this single rule: iptables -t nat -I PREROUTING --src 0/0 --dst 172.16.0.2 This will insert into PREROUTING chain (?=-I) of the nat table (-t nat) the rule, that says: Any incomming (-src 0/0) packets with destination address 172.16.0.2 (--dst 172.16.0.2). Things to remember are: To redirect incoming traffic means inserting rules into ...


0

Do you not have systemd and netctl? that's what arch usually uses. If you are not bound to using ip to connect to the internet, you can paste this into /etc/netctl/ethernet Interface=eth0 Connection=ethernet IP=static Address=('192.168.178.201/24' '192.168.1.87/24') #Routes=('192.168.0.0/24 via 192.168.1.2') Gateway='192.168.178.5' DNS=('192.168.178.5') ...


0

-Here take a look!!! named.conf // If you are just adding zones, please do that in /etc/bind/named.conf.local include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; include "/etc/bind/t-sig.key"; named.conf.options acl internals { 127.0.0.0/8; ...


0

try ip route add 192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.122.201 I flush my route main table, set static ip, encounter this problem. I try to delete the static ip, readd again, observe what has been added to route table, and find this entry. Then I add default route, it works. ip a del 192.168.178.201/24 dev eth0 ip a add ...


5

A port is considered "in use" whenever there are any sockets bound to it. They don't have to be in LISTEN state, just bound. Therefore the TIME_WAIT sockets that you see do count. It gets a little bit more complicated if any sockets are bound to addresses and ports. Different sockets are allowed to be bound to the same port if they're bound to different ...


0

Here is a simple way to connect with your WIFI - Click on Edit from the menu section Virtual Network Editor Change Settings Add Network Select a network name Select Bridged option in VMnet Information -> Bridge to : Automatic Apply That's it. You might be asked the password to connect to network. Add it and you would be able to connect to the network. ...


0

You can install isc-dhcp-client from synaptic package manager Dynamic Host Configuration Protocol (DHCP) is a protocol like BOOTP (actually dhcpd includes much of the functionality of bootpd). It gives client machines "leases" for IP addresses and can automatically set their network configuration. If your machine depends on DHCP (especially likely if it's a ...


0

Gah! @BinaryZebra is right! These new NICs don't support MDI-X. Thanks for pointing this out! # ethtool -s enp5s0 mdix auto setting MDI not supported


0

# ip link add name bridge_name type bridge # ip link set bridge_name up # ip link set eth0 master bridge_name This is using the now standard way of managing IP's and links using the iproute2 tool. To remove a link and delete the bride do: # ip link set eth0 nomaster # ip link delete bridge_name type bridge The old way to do it but isn't obsolete in ...


0

Have you tried including Requires=network.target? Both my Arch and CentOS installations have this target by default. Since it's a target, it indicates that the system has reached a particular milestone in the boot process as opposed to just a single service starting. If that doesn't do it try comparing against another service unit that you know requires a ...


0

I don't know specifically about systemd, but if you're using NetworkManager, you can use nm-online at the top of your script to wait until the network is up. if nm-online; then echo "Online" # do my stuff else echo "Network error" fi By default, it'll wait 30 seconds for a network connection to become active, and return 0 (true) if it does, ...


0

Try setting your hostname: # hostame srvr1.cloud.priv Then edit your /etc/hostname file to have it stick on reboot. /etc/hostname: srvr1.cloud.priv


1

tc can do a lot more than the standard example of traffic shaping on an ADSL line that originates from the Linux Advanced Routing And Traffic Shaping HOWTO. It is true that the canonical example works best with a statically-configured bandwidth, but that doesn't mean it's the only thing tc can configure. That HOWTO is fairly extensive, and will probably get ...



Top 50 recent answers are included