Hot answers tagged

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


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


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

you can check the mount before attempting to move: df | grep "/mnt/networkshare" |grep -v grep >/dev/null; r=${?} if [ ${r} -eq 0 ] then mv /path/to/the/file /mnt/networkshare fi also, adding a sleep command in the process might mitigate your 100% CPU utilization problem. Hammering a process without a break is not a good approach.


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 ...


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) ...


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 ...


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 ...



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