New answers tagged

0

Some things you could try: 1) check out the output from testparm on the linux machine. 2) run copy sometextfile.txt //192.168.1.9/epsonlx in cmd on windows 3) adding guest ok = yes and/or force user = guest to smb.conf 4) Do 1) and 2) again If that does not show you your error, post the output of the above, and I'll refine this answer


0

I don't see which operating system is in use. This is for Devuan / Debian, but the same applies to other distributions using a few different configuration files. Add a new routing table. I will call it 200 local. echo '200 local' >> /etc/iproute2/rt_tables Manually specify the IP address and gateway. Configure the wlan0 interface in ...


0

So after a lot of digging, I found that the issue was because of the kernel's rtlwifi driver. To me, it looks like the rtl8192cu driver was suppose to be responsible for handling missed beacons, by calling the function ieee80211_beacon_loss, but that call is nowhere to be found. I removed support for IEEE80211_HW_BEACON_FILTER in the rtlwifi driver and the ...


0

My router was routing port 80 by default, I created a rule for it and now rpi works fine. Thanks


2

To answer your specific question, you can use iproute2 to assign the IP address like this: sudo ip addr add 169.254.169.254/8 dev lo It will just add a new IP to the interface, no need for aliasing with :0, :1, etc. Note this is going to be lost after a reboot. And to quickly emulate the metadata service you can use netcat like this: while true; do sudo ...


0

Did you try to increase DHCP client timeout in the config file? Can you try to edit /etc/dhcp/dhclient.conf and set the 'timeout' option like shown below: timeout=60


0

iptables -t nat -A PREROUTING -p tcp --dport <origin-port> -j REDIRECT --to-port <destination-port> service iptables save service iptables restart


0

I seem to have found the problem: I needed to compute the IPv4 header checksum for the incoming packets before writing them to the TUN interface, since I modify them.


0

The solution depends on which dhcp client daemon are you using. Most distributions (on *bsd and linux) use dhcpcd or dhclient. In both cases, you could insert your script in the client configuration. dhcpcd runs /etc/dhcpcd.sh script, if it exists, each time a controlled interface goes up or down. You can simply insert your scp in this script. Hooking ...


2

ifconfig does not show output, probably because by the time itruns, the networking setup is not fully completed. Furthermore, there are not 100% guarantees the dynamic IP address wont change over the server uptime. If using dhclient, move the script to the directory /etc/dhcp/dhclient-exit-hooks.d, so it executes after getting an IP address via DHCP. ...


0

To disable your interface run the following command: ip link set wlan0 down To disable it at boot edit /etc/rc.local add the following line : sudo ifconfig wlan0 down before the "exit 0" line .


0

First of all, this sounds like an XY problem. What are you trying to do? I'm quite sure routing network traffic in this manner is unlikely to be a good solution to whatever your problem is. Having said that, Your routing tables still have a route for 192.168.2.0/24. This means 192.168.2.1 has two routes to reach 192.168.2.2, so the kernel routing subsystem ...


0

Static IP & 'hosts' File Set the IP of the device to a static IP and add that IP and hostname to your /etc/hosts file. For example, 192.168.100.22 hyperfang.localnet.lan hyperfang SSH config File Additionally, as was pointed out in another answer, adding an SSH configuration file/option will allow you to specify different items; e.g. user, ...


1

You can ssh into the Pi with pi@hostname.local. hostname.local works in most places you would use an IP Address, although there are a few exceptions e.g. rsync. This assumes that avahi is running, which should be the case for recent installations of Raspbian


0

There are a few different options depending on how much time you want to invest, your technical ability and how flexible you want the system to be. For a small mixed or non-windows network I suggest using the hosts file on each machine. For a completely windows based network (which you do not have obviously, based on your post and the name of this site), ...


0

If you only need the alias available on your own system you don't need a DNS server or your router involved. You can simply create the alias in one of two places depending on how you want to use it. SSH Only Alias If you only intend to SSH to hyperfang you can create an SSH config file with some information that effectively shortens your SSH command. For ...


0

Googling your error message, networking restart is deprecated, turns up several interesting links. It looks like you need ifup, and to kill dhclient if it is running. BTW, your question is phrased as interface crashes. That wording suggests a kernel problem, and may mislead people reading the question.


1

It's possible that your router tells the others to send directly, with an ICMP redirect packet. Since they are all on the same network, it knows this should be possible. I set up routes like yours between three Linux machines (mach1 <-> mach3 <-> mach2), and tested with a ping: mach1# ping mach2 PING mach2 (x.x.x.237) 56(84) bytes of data. From ...


0

If you don't care about editing the original system scripts, inside the script you can create a function like timeoutf(){ #If hangs 1 minute, dies.. sleep 1m kill $PPID } timeoutf&


4

You can use timeout command to run your command or script in a given timeout. Something similar to this: timeout 10m command Which waits for the command to finish withing 10 minutes otherwise kills it and exits with status 124. Then you can check exit status of timeout and print the appropriate message based on it. See here for more: timeout manpage. If ...


2

There are two possible cases: you have ordered from both ISPs the fixed IPs (or ranges) and you made a special arrangement with ISP that handles your outbound traffic to allow the traffic from your site that has different source IP addresses in IP packets than this ISP provided to you. Also, most likely, this ISP would request a proof from you that these ...


0

Add net.ifnames=0 to your kernel command line (via grub or whatever you use) The issue involves the non-standard 'standard' names given to network interfaces. The net.ifnames=0 cmdline option reverts the network device names to the older conventional names. (eth0, wlan0, and so forth)


1

There's nothing particularly wrong with that setup. You'll use a PPTP client to connect to the VPN provider in Sweden, first. Then route all traffic across that connection. When it's working, launch the second VPN client —I believe you said it was OpenVPN? This will be easier to keep track of if you're using different VPN protocols, but not fundamentally ...


0

I don't agree with the answer above. In Linux world, bridge is a L2 device. And the term bridging actually means that the the bridge keeps a mac address table and keeps updating it. A bridge is allowed to be added to a Ethernet device(e.g eth2). One bad thing is that once eth0 is attached to a bridge(i.e. br0), the ip address of eth0 is no longer ...


1

It comes from your provider's internal DNS server at 192.168.74.2. That DNS server is most likely configured in /etc/resolv.conf unless you already have bind running on your machine.


0

I think what I was looking for was AppArmor or SELinux. Alternatively, network namespaces could also be used.


1

I used dhcpdump when I was testing DHCP. It will dump both sides of the DHCP transaction. If you leave it running it will log the options passed. You may want to restart your DHCP client to see the initial negotiation. The renewal request should contain all the running configuration.


0

depending on your distro, it should be located in /var/lib/dhcp under dhclient.{interface}.leases or /var/lib/dhclient.leases. you can also specify the path of your dhclient.leases file by passing -lf when starting dhclient.


0

I'm not aware of a way to query this information on the client. If you are on the server you can see information on the client leases in /var/lib/dhcp/dhclient.leases. From the client the only way i know is: sudo grep dhclient /var/log/syslog Which should give you something like: May 20 18:34:38 [machine_name] dhclient: DHCPREQUEST on eth0 to ...


0

To connect through wpa_cli open the terminal and type the following command: wpa_cli scan scan_results To create a network type: add_network the output will be 0or 1 ..(remember the output it will be used next time) To connect type the follwing command: set_network 0 ssid "SSID_here" set_network 0 psk "Passphrase_here" dhclient wlan0


0

I think you might need to put your unqualified domain name (hostname) in /etc/hostname and your fully qualified domain name (hostname.com) as the first entry after 127.0.0.1 in /etc/hosts. I'm not sure what the 1.1.1.1 ip address is but I think this line should be removed. This askbuntu question might help clarify, although I'm still not certain how you've ...


1

You could periodically ping a website and execute your command when ping returns success. Something like the following... result=1 while [ $result -ne 0 ] do ping -c 1 www.google.com result=$? sleep 5 done mpg123 /home/user/file.mp3


3

Try this: #!/bin/bash while :; do ping -c 1 8.8.8.8 >/dev/null 2>&1 if [ $? = 0 ]; then break else echo 'No internet' fi sleep 1 done mpg123 /home/user/file.mp3 It will show you 'no internet' message if there is no ping response. And if it gets the response it will execute your command and quit.


1

It could be done on a distributed system but that's not likely the case as it would make it more expensive and complicated to run. Even with a distributed system, you could never have enough servers to be perfectly aware of specific network outages. Furthermore, your total load and bandwidth would always be in function of the number of servers, which is ...


0

Take out the .sh from the script name. You can test with: run-parts --test /etc/ppp/ip-up.d If it does not shows up, it is because of permission/file naming.


0

This tool could be handy: chname Run command or interactive shell with a new system hostname SYNOPSIS chname hostname [command ...] DESCRIPTION Create a new utsname namespace with a new system hostname and execute command. This is particularly useful for creating a chroot that has a hostname independent of the rest of the system. ...


2

Virtual interfaces do not artificially limit throughput to a particular data rate, like a physical interface would. However, they do incur software overhead, so you should expect transfer rates to be lower compared to simpler inter-process communication mechanisms, unless the bottleneck is some other factor.


0

Add network adapter host only in your VM, set an ip within the range the network adapter host only your notebook. That way you will be able to access your vm via ssh for any network that you are connected, you must use ip host only to connect via ssh. A post with more details http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox ...


2

I believe I've tracked this down. It's arguably a fault in trickle that's occurred as a result of creeping featurism in the socket() library call. The trickle code redefines socket(), as you know. At the top of its reimplementation in the file trickle-overload.c it has a check that includes type == SOCK_STREAM so that only connections of type SOCK_STREAM ...


1

Go register a domain name for your site which will be visible to the world. Register for DNS (Domain Naming Service). The registrar will bind your IP address to the site name; this service will be paid.


1

I got the second modem ativated using the steps at http://askubuntu.com/questions/512092/how-to-set-modem-on-huawei-mobile-broadband: create /etc/usb_modeswitch.d/19d2:2000 sudo touch /etc/usb_modeswitch.d/19d2:2000 sudo nano /etc/usb_modeswitch.d/19d2:2000 Put: ######################################################## # ZTE WCDMA Technologies MSM ...


3

It is not working because you have commented out the allow-query and goodlients directives. You should uncomment them and populate goodclients with the IPs/networks BIND is supposed to answer queries. acl goodclients { localhost; x.x.x.0/24; }; options { ... allow-query { goodclients; }; } From ...


0

Found it. The solution is to add: allow-query { any; }; EDIT: The solution of Rui F Ribeiro works, but I need to create a public server. If you would like to avoid the security issues, please see the comments.


0

Try this: virsh net list virsh net-dhcp-leases <net-name> <--- net-name from above command


1

No, the VPS is acting as a forward proxy, or just a regular proxy, in this case. You can achieve this using iptables, but there are probably some easier solutions available. Using iptables, you would want to set up DNAT and SNAT rules in your FORWARD table - no I don't have specific step-by-step instructions, but it shouldn't be too difficult for you to ...


2

Usually browser reports 'USER AGENT STRING' to server, which looks like this: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 You can freely change your user agent string, only problem might be that particular sites optimized for particular browsers will show some bugs here and there. That was ...


2

If your laptop (I assume that's what you want to boot ubuntu on, but your question is actually not clear on that) supports PXE booting, you can set up PXE, DHCP and TFTP on either the server or the Pi and NFS on the Pi. But it's a lot of work. PXEInstallServer looks like it might a good starting point.


1

Got the solution, i need to start mu UML process as root, after which configuring ip address will bring the interface up. Just run the uml as root : sudo ./linux ubda=Fedora21-x86-root_fs


1

A workaround to the situation appears to be to toggle the link state of the VM right after starting it, i.e. on the command line do: $ VBoxManage startvm <vmid> $ VBoxManage controlvm <vmid> setlinkstate1 off $ VBoxManage controlvm <vmid> setlinkstate1 on


1

I had this problem on Linux Mint 17.3 The drivers are current. went to network connections and deleted the ethernet connection. then added a new one and set the eth 0 interface to "Require IPv4 addressing for this connection to complete" . Then setting IPv6 Settings to "ignore". Came right up. The info from "sudo modprobe r8169" and "dmseg" helped ID the ...



Top 50 recent answers are included