Networking :: Shell Script Should Switch If Connection Established But Doesn't?

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


ADVERTISEMENT

Networking :: Openvpn Connection - Can Not Ping When Connection Established

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

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

Ubuntu Networking :: Established Connection But Not To Browse

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

Ubuntu Networking :: Run A Program When Network Connection Is Established

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

Ubuntu Networking :: Connection Is Established But Not Able To Connect To Internet In 11.04?

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

Ubuntu Networking :: Internet Connection Is Established But Can't Open Any Sites At All

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

Ubuntu Networking :: Sharing Connection - Get "connection Established" *pause* "disconnected"?

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

Ubuntu Networking :: Wireless "connection Established" No Browse No Ping

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

Ubuntu Networking :: Ubuntu 10.04 TLS Connection Established But Internet Not Working

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

Ubuntu Networking :: Switch Proxy Using Shell Script?

Oct 7, 2010

How to do this?

Is it possible to manipulate the selection of network proxy through shell script?

to

What happens How to change the selection of "Default" to "Something" through shell script? What I am trying to say is, I have created a new location called "Something" with HTTP Proxy as proxy and port as 8080. If I am at my home, I use "Default". If I goto my college, I should change it to "something". How to do this via shell script?

View 1 Replies View Related

Ubuntu :: Wireless Connection Established But No Internet

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

Ubuntu :: 10.04 Wired Connection Established But No Internet?

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

General :: PPPoE Connection Not Established Under Debian Testing

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

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.

(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)

View 2 Replies View Related

Networking :: Can't Switch To Wifi Connection / Fix It?

Jan 15, 2011

I am new to linux and also new to this forum. I love how light Slax is but it won't let me connect to my wifi. It scans and finds my router but the option to switch to the network is grayed out. How can I fix this problem?

View 1 Replies View Related

Ubuntu :: Change Settings On The Notifications That Show On The Screen When A Wireless Connection Is Established?

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

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

Ubuntu Networking :: When Switch Rebooted Network Connection Lost?

Apr 19, 2010

When there is a power failure at my university for about 30 minute, my computer stays up because of a UPS, but the switch it is connected to via ethernet is reset. After this, my machine loses network connectivity until I manually select the network using nm-applet.

In System -> Preferences -> Network Connections, the network has the "Connect automatically" box checked.

However, in /etc/NetworkManager/nm-system-settings.conf, there is a line that says:

Code:
no-auto-default=00:30:48:b0:11:07,
and that is the MAC address of the ethernet card.

I'm running Ubuntu jaunty.

View 3 Replies View Related

Ubuntu Networking :: Have Single Cable Connection To Switch Carrying Two Subnets?

Mar 15, 2011

how i can use VLANs. as i have red on the web, it is possible to have a switch to allocate ports to a single VLAN. thus splitting subnets on a port allocation. since i have a pc running KVM, it is possible to create multiple subnets for DMZ and LAN. thus my question is - is it possible to have a SINGLE cable connection to a switch that carries TWO subnets? so that i can decide how to distribute then on the pc?

View 7 Replies View Related

Ubuntu Networking :: Hardware Switch Doesn't Work For Atheros WiFi

Mar 10, 2011

i'm running Ubuntu 10.10 32-bit on an Acer Aspire 3050 laptop with an Atheros AR5BMB5 WiFi card.

The problem i'm having is that the hardware switch to turn the WiFi on and off isn't working right. When I hit the switch to turn it off, the light doesn't turn off, and Ubuntu just disconnects from the network and searches for more WiFi networks - it doesn't say that the WiFi has been deactivated, and I don't think it is. When I hit the switch again, it finds my network and connects to it.

The lspci -v | less command gives me the following information for the WiFi:

Code:
08:04.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
Subsystem: AMBIT Microsystem Corp. Device 0418
Flags: bus master, medium devsel, latency 168, IRQ 21

[Code]....

It lists a different model of card, but it's using what I assume is the correct driver, so I don't know if that has anything to do with it. I've checked the card itself and it is a AR5BMB5.

I would like to fix it so the switch actually turns the WiFi off instead of just making it search for more networks (I assume it's not actually turning off), and perhaps make the light turn off as it should as well.

View 6 Replies View Related

Fedora Networking :: Connecting Wired Connection 15 - SWITCH TO ROOT USER If Don't Have Privileges

May 26, 2011

Figured out a straight shot at connecting to the Internet in Fedora 15. Follow these commands.

1.)****** SWITCH TO ROOT USER if you don't have privileges*******
2.) cd /etc/sysconfig/network-scripts
3.) rm ifcfg-XXXXX (DO NOT REMOVE THE IFCFG-LO)
4.) system-config-network

-> Once in this screen, press the enter key on "Device configuration"
-> Configure your network statically. ( I did the following.) Name: leave as default Device: Leave as default DESELECT "Use DHCP" Set Static IP as 192.168.2.117 (or 192.168.1.117) Set NetMask as 255.255.255.0 Set "Default Gateway IP" AND "Primary DNS Server" to 192.168.2.1 (or 192.168.1.1)

[Code]..

View 4 Replies View Related

Ubuntu Networking :: Configure Vpn Connection Using Pptp From The Shell

Feb 11, 2010

I tried to configure my vpn connection using pptp from the shell following following tutorial: [URL] now, if i use Code: pppd call novax to connect to my vpn i see following appearing in /var/log/messages:

Code:
Feb 10 21:11:57 reg-laptop pppd[2655]: pppd 2.4.5 started by root, uid 0
Feb 10 21:11:57 reg-laptop pppd[2655]: Using interface ppp0
Feb 10 21:11:57 reg-laptop pppd[2655]: Connect: ppp0 <--> /dev/pts/0
Feb 10 21:11:58 reg-laptop pppd[2655]: CHAP authentication succeeded
Feb 10 21:11:59 reg-laptop pppd[2655]: MPPE 128-bit stateless compression enabled
Feb 10 21:12:00 reg-laptop pppd[2655]: local IP address 10.243.249.22
Feb 10 21:12:00 reg-laptop pppd[2655]: remote IP address 10.243.249.20

verifying with ifconfig, my ppp0 ip is correctly set to 10.243.249.22 - i can also ping this ip but i tried to ping other ips in our network and i can't reach any of them - did i mess up the route maybe? Content of my /etc/ppp/ip-up.d/route-traffic:

[Code]...

View 1 Replies View Related

OpenSUSE Network :: Error - Connection Timeout - All Wired Connection Over A Switch?

Feb 21, 2011

im on node1 when i type the command ssh node2@ip the terminal hangs up a bit then an error message stating that connection timeout but here is a thing: i cant ping to node2
but i can terminate the ping manually using ctrl+c when i terminate the ping usual message appears stating 10 packets transmitted, 100% loss

ps: when i go to node3 and ssh to node2 it works fine and also i can ping from node3 to node2 very fine. and the firewalls are down at all nodes -all wired connection over a switch

View 6 Replies View Related

Networking :: Established Connections Not Getting Cleared

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

Networking :: Using ESTABLISHED And RELATED Together Seems Dangerous

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

Ubuntu :: Flash Doesn't Load And The Light At My Webcam Doesn't Switch On At All

Jun 4, 2011

I've used this video conferencing web app on Windows 7 and it works perfectly. [URL] But I'm having flash problems. Flash doesn't load and the light at my webcam doesn't switch on at all. Things to note:Cheese works so I know my webcam in Ubuntu is functional. I've tried purging the flash plugin and reinstalling it. It doesn't work on Chrome and Firefox so it's definitely only a flash problem. I'm not using any medication so I know it isn't me just imagining it. EDIT: I checked out [URL] Here's a screenshot: [URL] I'll check back later, Charlie the Unicorn just rang my doorbell and invited me to tea on the magic hot air balloon. Definitely not hallucinating. Definitely. Definitely.

View 9 Replies View Related

Networking :: Using Netstat Command - 54406 Established?

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

Ubuntu Networking :: Internetconnection Established, Servers Not Found?

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

Ubuntu :: Can't Switch To Shell With Ctrl+alt+F1

Sep 18, 2010

I can't switch to shell with ctrl+alt+F1. The screen gets completely blank and nothing happens - though I can switch back to the GUI by pushing ctrl+alt+F7 again.I really miss having this option!

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved