Jump to content

OpenVPN to connect to Internet


Recommended Posts

Hi,

i want to make a vpn connection to dial to vpn server so client connected to Jasager will have internet through.

but when i try to go to this link

http://192.168.1.1/cgi-bin/webif/vpn-openvpn.sh

i get this

OpenVPN

Installing openvpn package ...

Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package openvpn.
Check the spelling or perhaps run 'ipkg update'
Downloading http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/kamikaze/packages/mips/Packages
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.x-wrt.org/xwrt/kamikaze/7.09/atheros-2.6/packages/Packages
wget: bad address 'downloads.x-wrt.org'
An error ocurred, return value: 3.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -q -P /tmp/ipkg-2blcp9 http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages'
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -q -P /tmp/ipkg-2blcp9 http://downloads.openwrt.org/kamikaze/packages/mips/Packages'
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -q -P /tmp/ipkg-2blcp9 http://downloads.x-wrt.org/xwrt/kamikaze/7.09/atheros-2.6/packages/Packages'
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package openvpn.
Check the spelling or perhaps run 'ipkg update'

which mean FON can not connect to internet to download the package ?!

then i uploaded openvpn_2.0.9-5_mips.ipk using winSCP

and then tried to install but i get the following error.

root@OpenWrt:~# ipkg install openvpn_2.0.9-5_mips.ipk
Installing openvpn (2.0.9-5) to root...
Nothing to be done
An error ocurred, return value: 28.
Collected errors:
Only have 0 available blocks on filesystem /, pkg openvpn needs 385
root@OpenWrt:~#

please help :blink:

Link to comment
Share on other sites

thanks again.

ok now Fon is connected to internet using ICS with DHCP on FON in LAN network , but failed to find the package plz help i did check the fourm nothing usefull found.

:mellow:

root@OpenWrt:~# ipkg update
Downloading http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/release
Downloading http://downloads.openwrt.org/kamikaze/packages/mips/Packages
wget: server returned error: HTTP/1.1 404 Not Found
Downloading http://downloads.x-wrt.org/xwrt/kamikaze/7.09/atheros-2.6/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/X-Wrt
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -q -P /tmp/ipkg-UCMjJw http://downloads.openwrt.org/kamikaze/packages/mips/Packages'
root@OpenWrt:~# ipkg search openvpn
Done.
root@OpenWrt:~# ipkg install openvpn
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package openvpn.
Check the spelling or perhaps run 'ipkg update'

Link to comment
Share on other sites

If you read the error message it is getting a 404 (not found) message when it tries to download the package. That probably means the url is wrong for some reason. Find it by hand, download it, put it on the Fon then install the package that way.

Link to comment
Share on other sites

thanks again, that what i did when i used openvpn_2.0.9-5_mips.ipk but i recived the following error

root@OpenWrt:~# ipkg install openvpn_2.0.9-5_mips.ipk
Installing openvpn (2.0.9-5) to root...
Nothing to be done
An error ocurred, return value: 28.
Collected errors:
Only have 0 available blocks on filesystem /, pkg openvpn needs 385
root@OpenWrt:~#

could please advise which package did you use it.

thanks,

Yousef

Link to comment
Share on other sites

It usually says

"Nothing to be done"

when the package is already installed, looks like the package list has been messed up. You could either do a re-glash and try again or manually install the package by hand.

To do it by hand, on your linux box untar the package

tar -xvzf openvpn_2.0.9-5_mips.ipk

this will give you data.tar.gz and control.tar.gz

untar control.gz and see if there is a preinst or postinst file. Preinst gets executed before the install and postinst is afterwards, I doubt there will be a pre but there may be a post.

untar data.tar.gz and copy the file structure created to the root of the fon.

Run any postinst instructions. That should do it for you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...