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


17

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

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.


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}'


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

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


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


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


4

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

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

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

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

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

Edit the network connection (NetworkManager indicator -> Edit connections, then select your connection and click Edit). In the Wireless tab there's a textbox named BSSID. Type in there the MAC address of the router you want to use and the connection will be locked to it.


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

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

Good instructions above to make the disk visible, but however, if you want to make it writable for the user, you have to define it with the uid & gid options in your mount command. To find out the uid (numerical User ID) & gid (numerical group ID) of your user, you can use the command: id <user> Then note the values in uid= and gid= -fields. ...


2

I have had similar issues with router a year ago. "roadmr" has a great potential solution, but there is a slight chance you might be on 192.168.0.1 in which case you would enter smb://192.168.0.1 (or other depending on your ip) ...although the most common would be 192.168.1.1 as "roadmr" suggested. Apologies if you have already tried this, but... ...


2

You can use Gogo6 and get an IPv6 address at the same time: On the server, download and install the Gogo6 client with: sudo apt-get install gogoc And get an account at http://www.gogo6.com/freenet6/registration for Freenet6. Then, run gksudo gedit /etc/gogoc/gogoc.conf(still on the server) and set the following settings: ...



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