Networking :: Run Script When Connection Established?
Jun 10, 2011
I was wondering, on a GNU/Linux system including but not limited to *ubuntu, how would I go about determining when the network connection is established on any interface, so I can run a shell script only once at that exact time?The idea that comes to mind is polling-and-sleeping, but I'd like to know if there is another, more robust way? Like an onconnectionestablished javascript event or something.
View 2 Replies
ADVERTISEMENT
May 8, 2010
I have problem in making connection to my vpn server I can make connection from windows xp to that but can not open any website and I can not ping 172.16.10.1 when connection established.
These are my configuration files:
server config file:
Quote:
client configuration file:
Quote:
And this is my server syslog tailed file:
Quote:
And I added this routing to /etc/rc.d:
Quote:
And this is my iptable:
Quote:
And vpn connection is lost after establishing a lot.
View 4 Replies
View Related
Jul 5, 2011
there is an open wireless i can connect it -in ubuntu- but can not browse anything.we tried to connect via mobile it's working fine ,in addition via Windows XP it's fine ,but not in ubuntu why???!!
View 1 Replies
View Related
Jan 5, 2010
I want a program (shell script) to be executed as soon as my DHCP connection is established successfully. Is there any way I can do this ?
View 2 Replies
View Related
May 21, 2011
I bought my new Dell inspiron N1401 64bit laptop. It has windows 7 installed in it, I am begineer to linux. I have installed Ubuntu 11.04 64 bit version. I have a wired internet connection which works fine with my windows 7. When I switch to Ubuntu, when internet cable is plugged, the top right corner, network manager shows connection is established, but when I open firefox I cannot access internet. I tried searching on forums, but I could not make it work. If I type ifconfig command in terminal attached is the output I get, I dont know what is the problem. I want to use Ubuntu than Windows
View 2 Replies
View Related
Feb 13, 2011
I see something like internet connection is established. Ive established etho connection but I cant open any sites at all. I also have Windows on another hard disk and it works well. About a week ago I had Ubuntu 8.04 and it worked really fine. What�s wrong? Is there any remedy?
View 3 Replies
View Related
Jan 18, 2010
I have created the following script
Code:
#!/bin/sh
interface=`ifconfig | grep -iE "(wlan0|gprs0)" | awk '{print $1}'`
[code]...
View 14 Replies
View Related
Jul 26, 2010
my netbook shares it's wireless connection to my desktop. i've done this through the gui (edit connections > eth0 > ipv4 settings > shared to others) and it has worked for the last i don't know how many months.recently it had become a bit touchy with regards to how it was set up. it didn't work unless the netbook was already booted and wired in at the time of booting the desktop.now however it's gotten even worse and all i get when i connect them together is
"connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" *pause* "connection established" *pause* "disconnected" and so on.
View 2 Replies
View Related
Jul 7, 2011
Ubuntu 11.04, wireless adapter BCM4312.The connection works for a while, for a random length of time from a few minutes to a few hours, then stops working. The laptop says it's connected, and the router says it's connected, but the browser can't find any Web pages, it can't find the router, and there is no response to pings from the router or any other device on the local network or on the Internet. "Host unreachable." When I try to ping to the laptop from another one, it times out.If I shut down the computer and try again a few hours later, it works fine again for a while, then after a while it stops working again.
In case it's relevant, sometimes when I restart networking from the command line, it says "ignoring unknown interface eth1=eth1," even though ifconfig -a lists eth1 as up with an ip address. eth1 is the wireless adapter. Another laptop with Ubuntu 11.04 connects to the same router with no problems.Using a fixed IP address doesn't change anything.
View 8 Replies
View Related
Jul 24, 2010
My wired network dead which i used before 1hr. I seen my firestar firewall application blocked a hit from my internet provider gateway address. I allowed all the connection from my provider gateway after that hit. It did not work. I installed a new OS ubuntu 10.04 tls. and assigned the IP address but still I cant acess the internet. It says connection was established but i cant browse net. Some one pls help me. I tried configuring fire fox. no use.I am using Internet dish. I configure it by browser by entering dish IP.
View 9 Replies
View Related
Jan 5, 2010
I am new to ubuntu, just installed it a few hours a go. I've managed to get it hooked up to my wireless connection but still the internet doesnt work. What I can do to get it working?
View 4 Replies
View Related
Sep 9, 2010
i have just installed ubuntu 10.04 on my laptop hp 550.after i finished installation i connected to internet via eth0 wired connection normally and everything was fine...after about 1 hour i had no internet....i try restart but is the same problem....this is strange because my eth0 says connection established and when i open mozilla i cant open google either..when i ping [URL] it says "cant resolve "
my internet works fine in windows so what should i do to have back my internet on ubuntu...i cant do anything else in ubuntu if i have not internet and i like very much ubuntu so
View 3 Replies
View Related
Nov 21, 2010
Currently I use openSUSE but the 6 months release cycle is starting to bug me a bit so yesterday I have tried Debian Testing daily snapshot created on 20-11-2010, using KDE desktop (I am a KDE fun). All goes well until I try to make a pppoe using KDE's module network manager.
I created the pppoe connection with user and password but I got 2 problems:
- After I have created the connection it doesn't appear along with "Auto eth0" above the button manage connections.
- The pppoe connection is not established (both password and username are correct).
I know that I could use pppoeconf or ceni for that matter, but I am new to debian as I where new to openSUSE 4 years ago and I am still learning, so please don't tell to use them I just want to know if there's a way to use network manager from kde 4.4.5 to establish a pppoe connection (you could name it the GUI way, no worries I like using the console as well). Under openSUSE I have a program called qinternet that helps me with pppoe connection is there something similar under Debian?
View 2 Replies
View Related
Sep 3, 2010
I've been wondering about how I can change settings on the notifications that show on the screen when a wireless connection is established, when I get new mail, etc. They look a lot like growl notifications from OSX, but clicking on them doesn't show me anything. If someone could explain a little about what they are/do
View 2 Replies
View Related
Apr 13, 2009
We are having an issue with our application where once we start making a few hundred connections to our Linux server, our connections are staying in the established state. When our app is working fine, the client sends a basically a heartbeat every five minutes. It is all nice and clean, receives the FIN and shuts down and that's that. tcpdump as follows:
Code:
12:53:10.965206 IP serverA.xxx.xxx.com.40315 > serverB.xxx.xxx.com.1234: . ack 2 win 46 <nop,nop,timestamp 3299017001 2043788445>
12:58:10.892878 IP serverA.xxx.xxx.com.40322 > serverB.xxx.xxx.com.1234: S 494392992:494392992(0) win 5840 <mss 1460,sackOK,timestamp 3299316941 0,nop,wscale 7>
12:58:10.894882 IP serverA.xxx.xxx.com.40322 > serverB.xxx.xxx.com.1234: . ack 3318963465 win 46 <nop,nop,timestamp 3299316941 2044088355>
12:58:10.894886 IP serverA.xxx.xxx.com.40322 > serverB.xxx.xxx.com.1234: P 0:78(78) ack 1 win 46 <nop,nop,timestamp 3299316941 2044088355> .....
Then things start getting busy, and it ends up looking like this:
Code:
01:28:10.493760 IP serverA.xxx.xxx.com.41132 > serverB.xxx.xxx.com.1234: S 774853781:774853781(0) win 5840 <mss 1460,sackOK,timestamp 3344315513 0,nop,wscale 7>
01:28:13.491231 IP serverA.xxx.xxx.com.41132 > serverB.xxx.xxx.com.1234: S 774853781:774853781(0) win 5840 <mss 1460,sackOK,timestamp 3344318513 0,nop,wscale 7>
01:28:13.491755 IP serverA.xxx.xxx.com.41132 > serverB.xxx.xxx.com.1234: . ack 3597595480 win 46 <nop,nop,timestamp 3344318513 2089089105> ....
What could be the cause if the fin was received at 01:28:13.492743, but hours later this connection is still established:
gateway 16514 root 111u IPv4 2714750 TCP
serverB.xxx.xxx.com:1234->serverA.xxx.xxx.com:41132 (Established)
There is no corresponding connection in the client's netstat.
View 1 Replies
View Related
Apr 16, 2011
I've seen packets coming to my computer through a DD-WRTv24s2 gateway above port 32K several times. I have iptables (using fwbuilder locally) both places. My desktop stops the packets. But I'm guessing the problem is as I described in the title for this post. Yes?If you ESTABLISH a connection to some webpage, and you just accept ESTABLISHED or RELATED datagrams in rule 1 of your iptables, what will keep incoming TCP from that (presumably nefarious) site from going straight to your desktop like the building firewall isn't there?? If the site wants to connect to you above 32k, or portscan you, its RELATED correct? They know your IP. You've ESTABLISHED a connection.If my guess is correct, it would seem wiser to NEVER use these together. Better to ACCEPT all ESTABLISHED. And if something is RELATED, then ACCEPT it only if its the data connection on FTP or individually by service or protocol.
View 6 Replies
View Related
Dec 1, 2010
I just found something "strange" by using netstat
tcp 0 0 myhost.deprecated:53719 amaretti.chimfar.:54406 ESTABLISHED
How can I check what is the program that is responsible for this line?
View 2 Replies
View Related
Nov 26, 2010
I have received a new modem from my provider and installed it. No problem with that except that there is a problem with my internetconnection. The internetconnection is established.But my computer gives an error every time I want to visit a website:
View 4 Replies
View Related
May 10, 2010
I am trying to connect to a windows 2000 VPN server at work, with my current settings in DOES connect to the VPN and i can ping the domain server which is 10.1.1.2 but the first issue is i cannot ping the other computers on the network(via hostnames) can't remember the ip address of the other machines . second issue is when the connection is established and i RDP into 10.1.1.2 ok great i am connected to the server but any interaction in the RDP session even moving the mouse on the screen kills the session and the VPN connection fails.
Running Ubuntu 10.04 LTS 64Bit
Image of current settings in network manager:
Syslog:
Code:
May 11 12:08:04 oliver-desktop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
May 11 12:08:04 oliver-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started
[Code].....
View 1 Replies
View Related
Jan 3, 2010
I am running a Debian server, with 2.6.30 kernel and everything standard.I have two ethernet cards (eth1 is the external, eth0 the internal) and I use the server as backup server, firewall, https for email reading with squirrelmail, Samba server, email server and that's it.If I understood correctly IPTABLES, the following OUTPUT rules should allow my server to establish communications with an http server (for dselect), an imaps server (for fetchmail) and an ssh server.However, it does not work, it only works when I allow all OUTPUT (adding "NEW" to "ESTABLISHED,RELATED")).Could anyone let me know what is wrong and how I can fix it (not opening my OUTPUT to any communication)?My IPTABLES script is pretty long, so I only copy/paste the OUTPUT lines unless anyone requests the rest.uote:
INTIF="eth0"
ssh="22"
dhcp_s="67"
[code]....
View 14 Replies
View Related
Jan 31, 2010
switched from OpenSUSE to Ubuntu, largely to make things consistent with my netbook running Ubuntu 9.10 Netbook Remix I replaced the / partition but left /home intact I was wondering how to make Thunderbird use the profile already established rather than set up a new one?
copied /home/user/.thunderbird directory to /home/user/.mozilla-thunderbird
View 1 Replies
View Related
Aug 9, 2011
I changed my ip address to a static one. Hope did it correctly. Now when I try to ssh or sftp I get this.The authenticity of host '192.168.1.28 (192.168.1.2' can't be established.RSA key fingerprint is 6b:31:28:58:ee:2b:77:36:08:64:a1:33:85:3c:f1:1f. Are you sure you want to continue connecting (yes/no)?
View 2 Replies
View Related
Aug 17, 2010
I am attempting a simple two computer office network using Samba. When attempting to access the shared director, a screen pops in Linux and Windows requesting a user name and password. I haven't established a user name or password. Is there a way to allow any computer on the network to access the shared file without a user name and password?The following is the result of:
cat /etc/samba/smb.conf
[global]
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
[code]....
View 9 Replies
View Related
Jul 5, 2011
Running 11.4 and a wifi link to lan, I set up an NFS share with NAS exactly as I had with 11.3.I am now locked out of my system as when I try and boot, the boot process stalls waiting for NFS.Of course there is no wifi link at this stage in the boot process so I am stuffed.There must have been something in the shutting down process which stopped this in 11.3? I have tried safe mode boot but still no luck. Please could somebody help me get past this so I can boot up and then delete the NFS share until there is a fix?How can I look at the boot log, assuming I can ever boot the system again? In addition to the line showing the above NFS problem, there is another long error message which I want to post here for advice. There used to be a log access button somewhere, I thought in Yast but can't see it now.
View 9 Replies
View Related
Feb 9, 2010
My scenario is similar to this person scenario: http:[url]......Here at the clinics, we already have established leaf/shorewall firewalls. Our domain controllers are win2k3 boxes.I've installed ubuntu 9.10 on a sound desktop/server and installed two nics inside that box.How do I make Dansguardian talk to our domain controllers, and give users access to the internet via established groups? What would be the best way to do this?
View 2 Replies
View Related
Apr 3, 2011
I'm trying to create a PAN (Personal Area Network) using a laptop (Siragon ML-1040) and my desktop computer, but I get the Connection Refused (111) error.
Blueman doesn't detect any network service between the two computers unless I start PAND on one of them and then it detects the NAP service. That, only after I enable the NAP/Workgroup services on the Services submenu in Blueman. However, it doesn't work neither with the NM plugins or without them (dhclient and that other one I can't remember the name of).
Any clues over here? I'm using pand 4.91 and blueman.
View 3 Replies
View Related
Jan 24, 2010
Its a case of ".... wireless network connection active but still not internet connection .."I am using WEP - 128 key ... Works when I connect directly using ethernet cable ... but not wireless (pci and wireless router)
ubuadmin@ubucomputer:~$ ifconfig
wlan0 Link encap:Ethernet HWaddr 00:06:25:12:83:3b
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::206:25ff:fe12:833b/64 Scope:Link[code].....
View 5 Replies
View Related
Jun 21, 2009
I have installed Fedora 11 recently. I want to share my Internet connection.
I have e LAN connection eth0 which is connected to internet.
I have a Wireless connection wlan0.
I want to share my internet connection with wireless connection.
View 3 Replies
View Related
Jul 28, 2010
I'm trying to do a SSH connection between my home and work PC both machines are running ubuntu 10.04. I have read all the comunity documentation at [URL] from Work PC. I went on to the web site what is my ip address and noted down the number, From Home i opened a terminal and typed: pnig (ip address). to which their was no reply, now i'm assuming i need to configure the works router to except connection requests, is this Correct?
Also what information do i need from my works network and how do i get it? I understand that I need the routers expernal ip address, but how do i referiance a specified computer after that address? What program do i use in ubunu and how is that information applied to it?
View 4 Replies
View Related
Jun 11, 2011
My problem is exactly the same as [URL]
but I am stuck at the last hurdle
here are the output of the command that helped to solve the case in the previous post:
ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:1b:77:d2:59:55
inet6 addr: fe80::21b:77ff:fed2:5955/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
[Code].....
I have also tried sudo dhclient but it hasn't helped and I am still unable to connect to the internet
View 1 Replies
View Related