General :: F14 - OpenVPN Disconnect Automatically After Login

Jan 15, 2011

I'm using openvpn under linux OS which is Fedora Core 14, in the folder "/etc/openvpn" i put 5 files which belongs to the network server that I should connect to, files are :
two files with the extension ".crt"
two files with the extension ".key"
one file with the extension ".conf"

Now, when I issue the following command (as root) :
Code:
/etc/init.d/openvpn start
It asks for my username & password to the network server, & after I entered the required authentication information, I successfully login, but I get disconnected automatically after two or three seconds.

- I connect to the network without any disconnection or problems under windows
- I use openvpn version "openvpn-2.1.1-2.fc13.i686"
- there was a bug in my OS "Fedora core 14" which is that I cannot activate or deactivate any ethernet cards, which solved by disabling NetworkManager in all run levels
- I disabled iptables
- I disabled selinux
- I got this error in /var/log/messages file when I disconnect from the openvpn network "

Jan 15 21:45:15 ViRuS openvpn[4143]: script failed: could not execute external program
Jan 15 21:45:15 ViRuS openvpn[4143]: Exiting
Jan 15 21:45:15 ViRuS avahi-daemon[1494]: Withdrawing workstation service for tun0.

- I couldn't find the file called "/etc/openvpn/update-resolv-conf"

View 4 Replies


ADVERTISEMENT

General :: PPTP Client - Vpn Will Automatically Disconnect

Jul 26, 2011

I installed Fedora Linux and I am using GNOME. I've created a vpn connection and is connected to the server without problem (Please see attached photos); But after being connected, Upon opening the site ,Vpn will automatically disconnect.

View 1 Replies View Related

Networking :: Samba Client Shares Disconnect Over OpenVPN Connection

Jun 23, 2010

My network is barely functional. I'm running 2 linux servers connected by openvpn (tun) through routers on both sides. There are Windows clients (98 and XP) on both subnets. One server (ls3) acting as PDC for the domain. The Windows clients use the respective linux boxes as gateways. On the server side (ls3 which is both openvpn server and samba server), all the clients can read/write properly to shares on both sides. The problems are all on the client side. Share connections to the server side disconnect after a few moments.

Browsing on the client side windows machines is fine. I can see shares on the server side. Some server side files open and are readable, writable, other server side files will not open. Some samba logon scripts on the server side can be opened from the client side. Others open after a long wait to a blank file! Permissions on server side files are set to 777 for testing. If a file won't open or reads "blank", that doesn't change no matter how many times you try. A non-readable/writable file overwritten by a readable/writable one can be read and written to!

I can ping successfully from any client on either side to any other client by either ip address or workstation name. Firewalls on both side are set to forward tcp and udp traffic going to port 1194 to the respective gateway linux boxes. Iptables on both linux gateways are down for testing. I tried reversing the openvpn server/client roles with the same result; the same physical side of the network had the problem. On one of the windows 98 clients, I wiped out the networking configuration completely and rebuilt it from scratch. Same result.

One one of the windows xp clients, I tried to rejoin the domain. It went through successfully but the result was the same as above. The network was operating smoothly for several years until the client side dsl modem broke last week. It was replaced with a newer model and at the same time I migrated from a pptp connection to openvpn. How to resolve this, Is this something to do with openvpn? Is this a network hardware problem? Am I missing something in the port forwarding on the routers? My smb.conf files are ancient except I added interface tun0. I have never seen 2 files sitting next to each other in the same directory where one opens and the other doesn't!

I'm running Mandrake 9.2 on the client side and Mandriva 2008 on the server side. I have a Sonicwall firewall on the server side, a Westell 7500 on the client side. I note that during the modem install, the http port was opened to the linux box on the client side and the access log got huge over the weekend and I ran out of disk space until I closed it down and deleted the log. I tried a simple test while viewing /var/log/daemons/errors on the client side. From a windows workstation in the client subnet, I opened a dos window and tried to print a file located on the samba server on the openvpn server machine which I knew NOT to be problematic.

The file printed and there were no errors reported in the log. I repeated the test with a known problematic file. The file would not print. The errors log noted:
Authenticate/Decrypt packet error: packet HMAC authentication failed
I regenerated the static.key file on the server side and scp'd it to the client side and restarted both openvpn's. I checked for duplicate files named static.key on both sides. Same error.

View 1 Replies View Related

Ubuntu Servers :: Set Automatically Disconnect Inactive Jabber Clients?

Jun 21, 2010

I'm running a small ejabberd server on a LAN. Everything works fine out of the box except that when certain users disconnect they remain listed as online.
Specifically, Linux users who suspend their computers with their client still open are still listed as online. This is not the case for Windows or Mac clients.
I did some research and fount out that it has something to do with the TCP keepalive timeouts on the server. However I cannot figure out how to set those times.

View 1 Replies View Related

General :: Login Automatically On Every Startup?

Mar 21, 2011

I am using Vetor Linux and I want to login automatically every system starpup instead ask for user and password. Vector linux is based in slackware and uses shell to ask user and password.

View 1 Replies View Related

General :: Automatically Start An Application After Login In Kde4?

May 28, 2010

I am using Kde 4.4 and I would like to start one of the applications automatically after every login to the system. How can I configure it? I remember I managed to find a dialog window in one of the previous versions, but I can't find it now.

View 1 Replies View Related

General :: Automatically Open Terminal At Login Time?

Jun 7, 2011

I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout

View 13 Replies View Related

General :: Shell Script To Automatically Login Through Ssh And Create User?

Oct 20, 2010

I was trying to create a shell script which will automatically login to the server 192.168.1.7 and checks if a user exists there or not, if it doesn't exist then it should create the user.I have very little idea about shell scriptThis is what I tried:Quote:

#!/bin/bash
pass="sacharje"
ssh 192.168.1.7

Now, how to pass that password automatically to the ssh when it asks for the password? (I can't use public key authentication here)

View 10 Replies View Related

General :: Log On Automatically To Remote Server Without Typing Everytime Password And Login?

Mar 24, 2011

i need to connect to a remote linux server on certain times (automated), but i need to log on to the server. So i want to make a script (shell perhaps) that periodically connects to the server and checks some files and folders.How do i automate it and how can i log on automatically to the remote server without typing everytime the password and login (the script should do it himself)

View 14 Replies View Related

General :: Create A Profile Settings And Network Drive Can Be Mapped Automatically When User Login?

Mar 26, 2010

create a profile settings and network drive can be mapped automatically when user login to the (like Domain and active user profile on windows environment) Ubuntu systems?

View 1 Replies View Related

Networking :: Login Multiple Client Pc On Using Via Openvpn Server From That Side?

Nov 24, 2010

How to login multiple client pc on the same network using via openvpn server from client side

View 1 Replies View Related

General :: Start Truecrypt Automatically And Use The Same Password As Login Password?

Sep 13, 2009

Ubuntu 8.4 Just installed Truecrypt yesterday. Would like to be able to start Truecrypt automatically and use the same password as my login password.

View 1 Replies View Related

Ubuntu Networking :: Network-manager-openvpn And Static-key OpenVPN Connection In 9.10

Apr 5, 2010

i have some problems with configuring openvpn tunnel connection to my openvpn server. I'm using static-key tcp connection. Network manager always said to me that connection could not be established. Also, when i try to run openvpn from terminal, i got some strange permissions problem:

Code:

openvpn --config config.ovpn
Mon Apr 5 15:48:37 2010 OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009
Mon Apr 5 15:48:37 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Mon Apr 5 15:48:37 2010 /usr/sbin/openvpn-vulnkey -q moj.key

[code]....

View 1 Replies View Related

Fedora :: Openvpn Certificate \ Installed Openvpn And Config It For A Tunnel?

Aug 9, 2010

i have installed openvpn and config it for a tunnel. my server.conf and client,conf is as follow:

server.conf
port 1194
proto udp

[code]...

View 1 Replies View Related

Server :: OpenVPN Range Address / When Change Static IP To Dynamic IP In Config File OpenVPN Didn't Work?

Feb 13, 2010

I want to configure a VPN over the Internet.I installed the 'openvpn' package, generated the key file, transfered it by a secure way to the client, and setted up the configuration file.

So, in that configuration file I input the IP addresses of the tunneled interfaces. Both IPs are static in the tunnel.

Then, I've heard somewhere that I can assign a dynamic configuration IP for the client. I do this registering a range.

Well, when I tried to change static IP to dynamic IP (changing '192.168.0.2' to '192.168.0.0/24') in the configuration file, the OpenVPN didn't work.

Obviously I don't know what I'm doing, and I really, don't believe that simply changing the IP will make it work, but I tried.

I hope I explained my problem as well.

My configuration file:

# OpenVPN Server Configuration File
dev tun 0
ifconfig 192.168.0.1 192.168.0.2
cd /etc/openvpn
secret key_file

In client I execute the 'openvpn' without the '--daemon' parameter.Then I want that my client uses a IP in a range (192.168.0.0/24, for example), instead of a static IP (192.168.0.2).I also thought to use a DHCP server, but I'm not sure that will work.

View 6 Replies View Related

General :: How To Auto-disconnect And Connect

Jan 19, 2010

I am checking something out in my connection and I just wanted to ask, is there a way to auto-disconnect and connect from the internet.For example say I want to disconnect now and reconnect to the internet in 0.05 seconds, is there any program that does that on Fedora Linux?

View 1 Replies View Related

General :: Disconnect Process From System Console?

May 9, 2011

I have a long-running process that was started in bash terminal on Debian. Unfortunately it wasn't started inside screen.
Is there a way to disconnect this process from current console and connect to it from screen?

View 1 Replies View Related

General :: How To Truncate File And Disconnect Session

Oct 7, 2010

I have two questions :

1) Is it possible to truncate the file content , not to drop the file ? i.e, I want to just delete a file's content only, not to drop the file .

2) I can find the connectd user using command 'w' or 'who' . Now How can I force disconnect a session from the list of 'w'/'who' command ?

View 1 Replies View Related

General :: After Some Logins 11.04 Started Disconnect From Internet

Apr 30, 2011

i have installed ubuntu 11.04 linux by wubi (windows 7 ultimate is the other operating system). after some logins it started disconnect from internet.

View 11 Replies View Related

General :: Ssh Sessions In Xterms Freeze For Many Minutes Whenever They Disconnect?

Jun 2, 2010

If I ssh to a remote machine and then lose internet connectivity, the session freezes. I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several minutes it will do so.
There must be some way to force it to abort the remote ssh session when connectivity is lost. I'm on a Mac but I believe this happens on cygwin or linux as well.

View 2 Replies View Related

General :: SSH Tunnel Commands To List Active/disconnect?

Apr 1, 2010

I've just started experimenting with SSH tunnels. I wanted a way to connect to MySQL on our website VPS but wanted the connection encrypted rather than just using PHP's mysql_connect() function and connecting to the remote IP. This seems to be working great. I'm also looking into autossh to make sure that the tunnel gets reconnected when it drops.is there a command/utility that can list the currently active SSH tunnels? Be great if there was a way of terminating an active tunnel through a command as well. Or is it a case of manually digging through the process list and killing the specific PID like I have been?

View 1 Replies View Related

General :: Slackware 13 Automatically Lock - Ktorrent Start Automatically?

Jan 25, 2010

what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?

View 2 Replies View Related

Ubuntu :: 10.10 - How To Automatically Login After Reboot

Mar 8, 2011

I have Ubuntu 10.10 Gnome. My computer automatically boots up at a particular time of day. But it stops at the login window.
1) How do I let it automatically login? I have set passwordless login.So when I manually hit my login username, it logs in without needing me input password. But it gives a pop-up window asking for keyring password.
2) How to get rid of it?

View 6 Replies View Related

General :: Get The Wicd Daemon To Disconnect Wireless Network From The Command Line?

Mar 14, 2011

I'm thrilled using wicd to connect to wireless networks. But when I suspend my laptop using the special keys, I just want to disconnect from wireless without having to use any kind of GUI or curses user interface. It says in the documentation that wicd works by sending DBUS messages, so presumably it's possible to write a command that talks to the daemon directly.But I can't figure out how.Does anybody know by means of what shell command I can tell the wicd daemon to disconnect me from my wireless network?

View 2 Replies View Related

General :: No Network Packets Sent Immediately After Quick Physical Disconnect And Reconnect?

Mar 9, 2011

I am using tcp for data transmission between 2pcs running linux.During transmission, I have noticed that if I unplug the network cable and reinsert it quickly,connection is not lost(same as i expect)and the sender start to resend the packet after 5s(what i expect is that network packets sent immediately after quick physical disconnect and reconnect).My question is can i reduce 5s to 0s(resend immediately after network cable reconnect)?Any parameters(tcp rto,txqueuelength,..) can be modified to achieve this condition?

View 10 Replies View Related

Ubuntu :: Automatically Login To Console After Booting

Aug 21, 2010

Is there anyway I can automatically login to console without having to provide username and password as soon as I boot into the machine?

View 2 Replies View Related

Ubuntu :: Num Lock To Automatically Be Enabled Before Login?

Oct 30, 2010

I just installed Ubuntu 10.10 64 bit (WUBI). I want Num Lock to automatically be enabled before login.

I read this but I am confused:[URL]...Which option should I choose?

View 6 Replies View Related

Ubuntu :: Kill Application Automatically After Login?

Jan 9, 2011

I am using kvkbd as an onscreen keyboard and I have it set to start on the login screen but after I login I want the keyboard to close and I can not get this to work. At the bottom of /etc/gdm/Init/DefaultI added the line.Code:exec kvkbd&This works great and kvkbd starts up and even puts a panel icon at the bottom of the login screen but after the login the keyboard is still there?I have tried making a launcher and adding it to the startup applications. I wrote a script and put it in the /usr/sbin and /usr/bin and also added a line at the bottom of my /etc/rc.local that should have run that same script to kill kvkbd and nothing. The really weird thing is that the launcher that I made would work if I double clicked on it but if i had it set to run as a startup application it would not work.

View 3 Replies View Related

Ubuntu :: How To Execute Command Automatically After Login

Feb 2, 2011

I need to execute this command after login: gvfs-mount -d /dev/sda1.It works perfectly from terminal but it doesn't if I add it to "Startup Applications" or to rc.local.Is there another way?

View 2 Replies View Related

Ubuntu :: Automatically Login Can't Select User / Fix It?

Jun 19, 2011

I having really bad problem can't select user for Automatically Login
here is a picture as proof what is my problem !
As we see i can't select user in login as
image is in attachment !
if somebody knows how to bypass it trout terminal i will be glad to fix this problem my self any way thanks for attention !

View 9 Replies View Related







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