Giter VIP home page Giter VIP logo

anyconnect-server's Introduction

AnyConnect-Server

English Version

Installation Script for Cisco AnyConnect

Linux 快速部署思科 AnyConnect 服务器

得用 Ubuntu / Ubuntu is needed

!!! ⚠️ Warning For People in Iran: 🇮🇷 !!!

Although SSLVPN encrypts its traffic.

Cisco's AnyConnect protocol is VERY EASY to be DETECTED by your government.

So if you are a democracy fighter or some stuff like that, DO NOT USE THIS PROJECT!!!

(Better run to USA XD)

(And for those CTOs using my project, I really want a H1B or immigration opportunities, thank you)

Usage /使用方法:

wget -N --no-check-certificate https://raw.githubusercontent.com/sfc9982/AnyConnect-Server/main/ocserv.sh
chmod +x ocserv.sh
bash ocserv.sh

Also see this: https://github.com/mmtaee/ocserv-users-management

anyconnect-server's People

Contributors

hosseinadib-hub avatar rezat4795 avatar sfc9982 avatar vahid55555 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

anyconnect-server's Issues

connection timed out

hi , thank you for great work , connection on openconnect android app is perfect
but on ios or other ssl aps ther s a problem with connecting
error : connection timed out
is there any way to solve this problem ?

Help !

Windows10,anyconnect-win-4.10.07061,Ubuntu-20.04,连接后无网络,无法联网,不知道什么解决。

SBL?

Hello love the project but how can I enable sign in before login?

Installing on Oracle compute instance

Hey,

This isn't necessarily an issue with the script itself, but it could possibly be if I can't find any way to fix it.
So when I installed the script on Oracle's compute instance I first opened up the ports in the security list on the account panel and also opened up the ports in iptables list inside my instance as instructed by oracle as opposed to using UFW. Before this, I could not connect to the anyconnect server. Afterward, I was finally able to connect to the anyconnect server from my own pc, but the anyconnect server does not have access to the internet. It's as if it's blocked.
If anyone is aware of any fix, I'd appreciate your help.

Radius authentication

ocserv also supports Radius authentication (e.g. through radcli which has to be installed prior to ocserv itself), but your script doesn't support it.
So my quick tweak after having installed your script was: apt-get install libradcli4 & apt install ocserv
then replaced the newly set conf with yours, set ip forward and masquerade again, and we are done.
You may kindly fix this on your script.

ipv4

Hi
you really should change the default ipv4 from 192.168.1.0 to something like 192.168.7.0
if someone install it and dont notice it it'll destroy their connection in windows after disconnecting and they need to restart their pc or re enable their connection to get their internet back

duplicate ocserv.service

Hi there.
i want to use multiple ports to connect to the server.
I've followed a tutorial that says:
"you need to run multiple ocserv processes. It’s very simple. Copy the /lib/systemd/system/ocserv.service to a new file."
but i cant find and copy this file and directory.

installing error on CentOS 7

hi. I got this error during installation.

configure: error: Package requirements (nettle >= 2.7) were not met:

No package 'nettle' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNETTLE_CFLAGS
and LIBNETTLE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
[ERROR] ocserv compiled failed!

what should I do? thank you

Got error during installation

Hello,
I got the following error, it seems the server is down ! any solution ?

Connecting to ftp.infradead.org (ftp.infradead.org)|90.155.50.34|:21... failed: Connection timed out.
Connecting to ftp.infradead.org (ftp.infradead.org)|2001:8b0:10b:1236::1|:21... failed: Network is unreachable.
[错误] ocserv 源码文件下载失败 !

no-route is limited

as far as I know no-route is limited on 200 lines
is there any alternative way to restrict/split the client to connect national internet(Iran's network)?
Great Firewall is sensitive to foreign IPs

FTP Server is DOWN!

hello sir,
I just wanted to inform you that the ftp server is down and script is not working.

Data Transfer problem

hi.
i install script in Ubuntu and everything works fine.
i can connect to server but no data transfer...
error in log:
DTLS initialised. DPD 1800, Keepalive 32400
DTLS handshake timed out
DTLS handshake failed: Resource temporarily unavailable, try again.

SSL connection Failure

I ran a open connect server on ubuntu. TCP port is 443. when I want to connect to VPN with android open connect App, I get :
-SSL connection failure: the operation timed out
-Failed to open HTTPS connection to server IP
-Error obtaining cookie
-VPN terminated with errors

also I don't have access to internet when I connect to server with windows AnyConnect application. (it connects but have no Internet)

Current status: installed but NOT running

Hi i get this massage :
Current status: installed but NOT running

i tried to stop and start ocserv but this is what i get :

[信息] ocserv 启动中...
[错误] ocserv 启动失败

Connects but routes no packet

every time after i change the server ip (either v4 and v6) it connects but routes no packet
i have to delete the script and reinstall it
any hints?

Limited users

Is there any way to limit the connections at the same time for each user?

I mean only one connection connects to a specific user.

ssl certificate

Is it possible to update this project and add ssl configuration and domain to it?

Many thanks

English Version File

It seams that the lines 2 & 3 must be change to English version file:

chmod +x ocserv-en.sh
bash ocserv-en.sh

scheduled expiration

sudo sed -i '/test2/ s/$/!/' /etc/ocserv/ocpasswd && echo "test2 is disabled" >> /etc/ocserv/changeslog.text

i'm using this command to disable user automatically in crontab
any better idea?

Installing on Oracle compute instance

Hey,

This isn't necessarily an issue with the script itself, but it could possibly be if I can't find any way to fix it.
So when I installed the script on Oracle's compute instance I first opened up the ports in the security list on the account panel and also opened up the ports in iptables list inside my instance as instructed by oracle as opposed to using UFW. Before this, I could not connect to the anyconnect server. Afterward, I was finally able to connect to the anyconnect server from my own pc, but the anyconnect server does not have access to the internet. It's as if it's blocked.
If anyone is aware of any fix, I'd appreciate your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.