Ubuntu :: Terminal Command To Block All Internet Connections?
Apr 16, 2011
I am trying to write a shell script that will block any outgoing Internet connection, focusing mainly on the HTTP connections.
It would be nice if this command could work on both Mac OSX and Linux.
View 8 Replies
ADVERTISEMENT
Oct 12, 2010
When I typed netstat -lna, the output:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:580 0.0.0.0:* LISTEN
...
...
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node
unix 2 [ ACC ] STREAM LISTENING 23581
...
...
Can anyone explain to me:
1. What is "Active Internet connections" & "Active UNIX domain sockets"?
2. What is unix Proto?
3. Difference between LISTEN and LISTENING state.
View 8 Replies
View Related
May 30, 2011
I recently installed Fedora 15 now, and during installation I set the internet connection manually, then did update and after reboot, the internet connection settings have been removed. Now I can not set because the network connection to the Internet Connection is inactive. I mention that before the update was functional internet connection.
View 5 Replies
View Related
Apr 4, 2010
I need some suggestions on software. I would like to offer remote desktop support to some of our clients, but some of them are using ISP's that block incoming connections so, VNC is out of the question. I was wondering if there is something similar to logmein for ubuntu?
View 1 Replies
View Related
Oct 31, 2010
on my linux server i have many websites but with difrent ips address, is some way to i can block all the ips with many connection (100+) just from my website not from all websites
View 5 Replies
View Related
Oct 2, 2010
I have noticed interesting problem. I use two browsers - Firefox and Konqueror. Konqueror is configured to use tor, Firefox not. Using Gufw I block all incoming and outgoing traffic and it works while using Firefox, I mean that I can't view any www site and it is ok. But if I use Konqueror I can establish any conection. How to understand this? Should I have different firewall while using tor?
View 5 Replies
View Related
Feb 21, 2011
Running 10.04. For some reason, starting today, I have no internet connection unless I run this command in terminal - sudo dhclient eth0. I have a hard wired ethernet connection on a Desktop PC with a static IP address (there are a number of devices in the house) and it has been running 100% for months and months. Why suddenly do I have to enter this command to get connection? When I switch on I get a connection in that when I click on the Top Panel icon and right click Connection Information it tells me I have an active connection to my router on the normal IP address. I cannot ping the router and Firefox says Server not found. After sudo dhclient eth0 everything works - what has happened since yesterday evening and this morning to stop what has been 100% for months?
View 6 Replies
View Related
Feb 8, 2011
Ok so, buddy of mine has his ssh server setup and upon checking his logs he sees a ton of failed attempts. Now obviously these are people that are scanning him and trying to brute force him. So is there a way to block them? We know you can block each IP but is there a way to block ALL connections except for certain ones, such as his and mine? Maybe a couple others.
View 6 Replies
View Related
Jul 4, 2010
I am still new to ubuntu and I use firestarter as my firewall tool and I was told that its just ufw in a gui. Well anyways I noticed a connection to 174.129.241.144 using https and python, I didn't have any scripts running and my browser was closed, I read the man files for ufw and it said to do something like deny from 174.129.0.0/12 and I want to block all incoming and outgoing connections to this IP range and I was wondering how to do that, I heard of iptables that it would be able to do this but I dont know anything about it. What I should learn so I can handle these kinds of situation in the future and how I can block this ip subnet or also what does the /8, /12, and /16 stand for?
View 7 Replies
View Related
Feb 8, 2011
My server gets ddos attacks. I dig into access logs and I saw that attacker ips doesn't have valid requests headers, like their browser application info or requested url info.I want to close those connections immediately, and if it's possible block those ips for a time period.Can I do that with Apache and iptables?I searched on the internet but couldn't find useful results. Probably couldn't search for the right words.
View 2 Replies
View Related
Feb 7, 2011
have a problem with my network-manager in ubuntu 10.10.when I dial one of my vpn connections, my other vpn connections be disabled and I can't use them!I tried to restart network-manager and gnome-panel, but it does't seem to solve this problem.
View 1 Replies
View Related
Aug 8, 2010
What is the command for "Open a terminal window and run application in this terminal
View 4 Replies
View Related
Apr 7, 2010
I have the latest Ubuntu (9.10) desktop. My 2 cards are:
WiFi: Intel(R) Wireless WiFi Link 5100
Ethernet: Marvell Yukon 88E8072 PCI-E Gigabit Ethernet Controller
Is there any way to get drivers working? My hardware switch is on and i have Ubuntu 9.10 running persistently on my usb so i can download the drivers etc. and install them.
View 7 Replies
View Related
Jun 7, 2010
I am a user of Ubuntu 10.04 and I use Firestarter because it lets me know which IPs I am connected to, which ports are used, and which applications are using those ports. The problem is that I can't use Firestarter with my non-sudo account (well, I know that I can change my system settings to do that, but I'd rahther not do it).
So the question is: Is there any application that lets the user monitor the internet connection?
View 1 Replies
View Related
Sep 18, 2010
While using Ubuntu two other computers lose their connection. One (main) is connected to the modem, other from the switch to the wireless router, and the one with ubuntu wired via switch. Currently connected with Windows 7, other two are connected. Once booted into Ubuntu rest of the computers disconnect?
View 6 Replies
View Related
Oct 29, 2010
I Installed Ubuntu which was on the laptop before and this install doesn't want to work with a Internet connection. I know my connections is good and the Laptop is fine because it used to have dual boot and windows connected fine.
View 2 Replies
View Related
Apr 12, 2011
I know Ubuntu can do amazing things, but I was wondering if it can use different Internet connections for different websites.
The Setup: We have 1x unshaped ADSL connection at 4MBPS (fastest available) that's used for office related things, Skype, General browsing etc. We have another ADSL connection, this time shaped and running at 4MBPS, I want to send all requests to facebook, twitter and downloading sites like fileserve, filesonic, hotfile etc. to the shaped connection. Can iptables be used to do this? The unshaped ADSL router is connected to eth0 and has an IP of 192.168.0.1 the shaped ADSL router is connected to eth2 and has an IP of 10.0.2.1 Local lan is connected to eth1 and has a range of 192.168.1.0/24 Can iptables send a certain webpage (*.facebook.*) to eth2 and other pages (*.google.*) to eth0 ?
View 3 Replies
View Related
Jul 13, 2011
I'm trying to set up an openVPN server for a small office. I've gotten the server running, and configured keys, and been able to connect to the server. The trouble is that once I connect with my windows machine to the server, I am unable to bridge through to the www. I have combed through so many settings and tutorials, and I am confused as to how to set up the interfaces configuration file. Here's a sample of my routing table:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
XXX.XXX.XXX.0 * 255.255.255.128 U 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
default XXX.XXX.XXX.1 0.0.0.0 UG 100 0 0 eth0
How should I be configuring this so that when I'm in the VPN I can get through to the internet?
View 9 Replies
View Related
Mar 24, 2011
I've got a Ubuntu Server Linux router that I've got 2 internet connections hooked to. One of them is DSL and the other is cable.
What I'd like to do is have everything go through the DSL connection EXCEPT for one desktop, I'd like that system to go through cable for everything.
Here's a diagram of how I've got things set up.
[URL]
I don't have any more expansion slots on the mainboard of my server for another NIC, also I do a lot of file transferring between a laptop and the desktop I want on the cable connection so I don't want that slowing down the rest of my network.
I've got both providers set up in the providers file and I've got everything going through the DSL connection right now. So far everything I've tried has stopped the desktop from connecting out at all.
View 2 Replies
View Related
Jun 4, 2010
I have Ubuntu 9.04 and I would like to know what is the command to find out the number of connections per user (i.e. ssh) and also what syslog module do I need to modify and how to enable it in order to have it logged, thing is I need to generate this event in order to see it in RSA enVision, I've tried with "who" but nothing is displayed, do I need to program something besides that? or what can I do? to have no. of connections and have that logged so I can see the event in enVision.
View 3 Replies
View Related
Mar 1, 2010
In a book, I read tha cmchk command is used to get the disk block size. But in Ubuntu, it is not allowed as command is not available.Can some body tell me what is its equivalent in Ubuntu.
View 4 Replies
View Related
May 10, 2010
Is it possible to make terminal (xfce4-terminal) transparent from bash script?
Maybe by enabling compostion?
View 1 Replies
View Related
May 25, 2010
I'm running ubuntu lucid and i was thinking in purchasing one or more extra wifi cards to try to configure my computer to manage different conections at the same time, with different isp's. The thing is that I'm not quite sure if what i want to do is actually possible.
The easiest way that crossed my mind was to try to configure a / multiple virtual machines that are redirected threw proxies to ubuntu and try to configure that each proxie port goes threw a different internet gateaway. This way i might be able to divide threw different sessions of JDownloader, installed on each virtual machine, the things i want to download. The negative aspect of this idea is having multiple jdownloader sessions will make my laptop work to almost 100% for sure...
Another thought i have was to make JDownloader manage its downloads in only one session redirecting them to my internet conections; the negative thing is that i think i will have to try to modify its source and learn java...
And well my last possible configuration i had in mind was to try to make ubuntu directly add up all my internet conections manage as if it was one. the negative thing here is that i might not be able to get multiple downloads from some sites
Well, all this where just thoughts, im struggling whether to buy another card or not to try to setup any of this configurations but im not really sure if any of them are actually possible. Is there an easy way to manage this?
I just want to take the most out of my internet conections... if i'm at college i have to options that are quite slow, adding them up with two cards would be great, i might also be able to add a third and a fourth conection. Also if i'm on a coffe and i need some bandwith i could try to make it go with an open network arround, etc.
View 1 Replies
View Related
Feb 25, 2009
I have a question, regarding the use of two internet connection on the same server. So, the thing is like this: The server will have 3 network adapters: connected to a DSL modem (on this adapter I have one of the internet connections, a PPPoE connection. It's only purpose is to share the internet connection to all LAN users using SNAT.
eth1 ----> the other internet connection, a much more expensive one actually, used for hosting a website, a domain name server, and a qmail server. eth2 ----> LAN connection So what I want is to make eth1 the "default gateway" (for outgoing mail, DNS requests, etc) and, as I said, use the ppp0 connection on eth0 only for internet sharing in LAN.
My question is (since I'l configure this server in about one week), does anybody have any suggestions regarding how could I accomplish this? I mean, I'm affraid that ppp0 will also try to use the default gateway from the other internet connection and vice-versa. Now, I know I can use the ip route/ip rule commands, but for many reasons I'd like to keep it simple and not use them.
View 4 Replies
View Related
Mar 22, 2009
When setting up my server I noticed that I could control the amount of connections; the maximum seems to be 256. My server is currently windows 2003 server which is unlimited connections - before I change the server to F10 I need to be able to have unlimited connections (I often go over 256 connections, I have 25 web sites hosted). How do I do this on F10 or is there a better distro for web servers that have thousands of Internet connections at the one time?
View 4 Replies
View Related
Jun 22, 2009
I have two internet connections. One is wired ADSL Broadband & another is USB EVDO modem. I can use only one source at a time. That means the traffic will pass through either ADSL or EVDO. Other connection just sits idle. I want to use both the connections together so that I will have increased bandwidth. Is there a way to do that?
My computer has one NIC card. Both ADSL & EVDO use dynamic IPs.
View 1 Replies
View Related
Feb 17, 2010
I have a firewall ( a pc with debian 5) with 2 internet connections. each connected to a ethernet card (the firewall has 2 ethernet pci cards so it has one connection per card)how can i balance the internet requests from my LAN using this 2 connections?
View 3 Replies
View Related
Feb 3, 2010
I have to configure squid server which will have two internet connections on two separate lan cards and both will run simultaneously.I know how to configure squid server with one internet connection
View 4 Replies
View Related
Apr 11, 2011
I am wondering if it is possible to force internet/external SSH connections to authenticate with a public key and allow local connections to connect via user and password?
View 5 Replies
View Related
Oct 29, 2010
How can I block access to a certain internet site using ufw? Let's say I want to block access to www.xxx.zzz (IP 1.2.3.4) to any program and user; using iptables I can do
sudo iptables -A OUTPUT -d 1.2.3.4 -j DROP how can I do that using ufw? if ufw can not do this, where should I put this rule to persist it over reboot, without interfering with ufw chains infrastructure?
View 5 Replies
View Related