Hot answers tagged

40

It depends. Most people use a router between their desktop and the internet and by default there are no sigificant open ports, so in the vast majority of user cases a firewall adds very litte, if anything. It can help if you inadvertantly install a server, such as VNC or SSH. A better question is what do you want to use a firewall for ? See: ...


15

I have figured it out. Apparently I didn't have cifs-utils installed onto my server. Everything is working now. Install it by running the following command: sudo apt-get install cifs-utils


11

It sounds like the question is about a host-based firewall on an Ubuntu PC. IF the machine never leaves the NAT-based network (ie, it is not a laptop that you take to coffee shops and use on free wifi networks), AND there are no ports open on your router that could be mapped to your Ubuntu machine, AND your router doesn't have any features which ...


10

This will not work in a Bridged Networking setup. From the VirtualBox documentation: Bridged networking This is for more advanced networking needs such as network simulations and running servers in a guest. When enabled, VirtualBox connects to one of your installed network cards and exchanges network packets directly, circumventing your host ...


9

Using a NAT, if you have no port forwarding to your machine, it is not accessible from the internet unless you explicitly open a connection to it (with vnc or teamviewer for example) so I think there is no problem not using a firewall on it. The unique worry could come from internal (LAN) access but usually not the case on home lan.


8

You can find it many ways ip route show default A better question, what or how do you want to shape the output ? ip route show | awk '/default/ {print $3}' tracepath -m 1 8.8.8.8 | awk '/1:/ {print $2}' | uniq From the comments -(thank you Avinash Raj 0 tracepath -m 1 8.8.8.8 | awk '/1:/ {print $2;exit}'


8

As of 10/23/2012 You need CIFS not SAMBA : sudo apt-get install cifs-utils Add //192.168.1.1/USB_Storage /media/public cifs guest 0 0 to your /etc/fstab I would not have gotten this far without the original answer so thank you.


7

Do you know your router's IP address? (usually 192.168.1.1, but it may vary). Open a File Browser (Nautilus) window, then press Ctrl+L and in the location bar that appears type smb://192.168.1.1 that may give you access to the disk, which is usually published to the network via the SMB protocol.


7

One-liners: nm-tool | grep -i gateway | xargs echo | cut -d' ' -f2 nm-tool | grep -i gateway | awk '{print $2} netstat -nr | awk '$1 == "0.0.0.0"{print$2}' arp -n | awk '{print $1}' Note: works only if your machine is the only one on the network ip route show | grep -i 'default via'| awk '{print $3 }' output: 192.168.0.1 for me Edits and additional info ...


7

Hello To all those viewed this post. This issue was solved. People commenting on the post made me to detect the point where the error was caused. This is what I made mistakes I unistall the resolvconf file And then I tried some one's answer, Which suggested that to change the Proxy settings of the Network. I did as per his suggestion. Then People ...


6

From @Matv1 comment: I'm a bit confused. I was going on the assumption that Ubuntu wireless was working well, just that it was impacting throughput on your other connections. Now I understand that the connection on your ubuntu is dropped sometimes as well. What I notice in your dmesgis that the wifi client doesn't know which regulatory domain it ...


6

By default VirtualBox works in "NAT" mode, meaning that it builds a "virtual" network and translates network accesses from the VM so that to the outside world, they appear to come from your actual computer. VirtualBox makes the VM think it's connected to a network, but in reality VirtualBox is providing network services, including a mini DHCP server. Then, ...


5

Run this in a terminal: sudo apt-get install hostapd Then, open a text editor program, for example gedit. Copy the following into it. interface=wlan0 driver=nl80211 ssid= channel=1 hw_mode=g auth_algs=1 wpa=3 wpa_passphrase= wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP rsn_pairwise=CCMP Don't forget to fill in the name of your network after ssid= as ...


5

Other answers have addressed your options while installing and the issue of Ubuntu accessing the Internet. The key points are that it's a good idea to test Ubuntu first on the live CD/DVD/USB (same as what you use to install from), and that your options are explained in various resources that explain how to install it, like this. I'd like to address the ...


5

As you usually use route -n, you can try this sed solution coupled with route -n: route -n | sed -nr 's/(0\.0\.0\.0) +([^ ]+) +\1.*/\2/p' Here is a test: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 169.254.0.0 ...


4

Try this magic trick: Change your wireless channel to a number different from 13. Disable the automatic channel. There are regulations regarding the use of WLAN channels. Channels 12, 13 and 14 are not allowed in North America. For more information: http://en.wikipedia.org/wiki/List_of_WLAN_channels#Interference_Concerns From your router configuration, I ...


4

Yes, but more than 1 line does not mean more than 1 NIC. Example $ lspci | grep -i net 01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716 01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5716 This is 1 NIC connected to eth0:0 and eth0:1 (so 2 IP adresses) that is a PCI device(!). There is a better command: ...


3

I have this same router and just figured out how to access an external drive via Ubuntu. I wrote a blog post with the details but here's the short version: Install the smbfs package (sudo aptitude install smbfs). Create a directory in which to mount your external hard drive (e.g., sudo mkdir /media/public). Add a line to the file /etc/fstab (gksudo gedit ...


3

Once you can connect to the machine from inside your LAN, the rest is completely outside of the control of Ubuntu running on that machine. So the problem is likely to be somewhere outside of your Ubuntu box. Possible causes may include: incorrectly configured port forwarding on your router. Note that the internal IP of your machine may change when you ...


3

Provided your router has enough storage (e.g. external USB HDD), it shouldn't be a problem if you're familiar with the command line. Your router is most probably running either an ARM or a MIPS processor. The appropriate debs can be found in the Debian repositories here. You can't install them directly on the router, so extract with dpkg-deb -x filename.deb ...


3

I figured it out! These links helped: http://www.rsyslog.com/tag/udp/ http://www.rsyslog.com/doc/multi_ruleset.html Here's what I did: Opened up /etc/rsyslog.d/50-default.conf and at the top of the file, before other all of the default filters, I added: # process remote messages # define new ruleset and add rules to it: $RuleSet remote *.* ...


3

I'll assume you have just bought the router and are trying to set it up. You do not need the source code you downloaded, it is already installed on the router. They just make it available so that they are complying with the open source licensing. Connect your computer to the router using an ethernet cable, you should have got one in the box. Open a web ...


3

lspci list alll PCI devices so if you have some old built in network card, or some usb cards it will not shown in the result, so to get more precise result try this: ifconfig -a | grep Ethernet Thanks for @gertvdijk note add the -a option to ifconfig to list all interfaces even if they are down


3

To change the default TTL of TCP/IP packets sent from your Linux computer you can run the following command: sudo sysctl net.ipv4.ip_default_ttl=129 Or: echo 129 | sudo tee /proc/sys/net/ipv4/ip_default_ttl Or: sudo bash -c 'echo 129 > /proc/sys/net/ipv4/ip_default_ttl' But you have to run one of those commands whenever the computer boots. To ...


3

You said: In the asus manual the ip addres is the same as the one of the service providers (192.168.1.1) I suggest you disconnect the Asus router temporarily, connect to it with ethernet and change the Asus IP address to 192.168.0.1. Reconnect and you are all set.


3

My personal setup is the following: On the router forward port 22 from remote machine to 2222 of the local machine, let's say 192.168.0.33 for example. That way you can still have ssh access to the main OS on the machine, while 2222 is for the virtual OS. On the virtual box, forward host OS 192.168.0.33 port 2222 to the guest OS's port 22. The IP of ...


2

There are multiple things you need to do: 1) Like fkraiem mentioned in his comment, make sure your VM is accessible on the local network. Using a 'bridge' network connection in the VM settings should accomplish that. Then using one of your other computers (even your host), check to see if you can log into the SSH server. If you can, congrats, let's move to ...


2

Windows uses a different local DHCP-less communication protocol than, well, basically any other OS out there. Most other systems use implementations of the Zeroconf protocol: Bonjour on Apple systems, like Mac OS or iOS, and Avahi on Linux. When using Zeroconf, hosts can be adressed with hostname.local If your NAS supports Zeroconf (simply try), you ...


2

You can install another driver. Connect to internet an alternative way and run in terminal: sudo apt-get install r8168-dkms If you can't connect an alternative way, you will have to download this package and dkms separately. Run sudo modprobe -r r8169 sudo modprobe r8168 or reboot after the installation.


2

There were some issues with this network adapter Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0) in older kernels. I suggest that you upgrade kernel to 3.16. It can be done by sudo apt-get install linux-generic-lts-utopic This kernel is default in 14.04.2. But you need to connect to the Internet using wifi, if it works.



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