-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2FA RSA code support #14
Comments
I didn't even know that there's 2FA support in F5. What does it looks like? Can you post some screen logs asking for a 2FA code? |
What about testing it in a virtual machine? And then try to connect via command line please. Since this tool here is only using command line, we have to find a way passing the RSA code via command line if we want to support that here. |
I did make an ubuntu vm, and used that "app" it makes you download ( an app made with Qt ). |
also, it had to be 17.10, because with the latest Ubuntu, it wouldn't work. Seems like it needed an old openssl library version or something. |
@MatthiasLohr what happens is, once you login with that form on that website, a "vpn" link appears. |
You installed the F5 VPN on your system, right? Try to find a binary called |
The only way I made it work is in an Ubuntu vm. |
It does not matter what you do for a "normal" connection. If you want to have support for 2FA tokens here in this project, we have to work out the CLI thing. Maybe this link can help, but the more important thing is that you look, how the CLI tool will react to the server's 2FA request. |
I'm just trying to explain how I use it in the company I work for. On what you asked earlier, if I run |
Oh, I saw you wrote |
Did you try with |
Cannot find that file anywhere.
|
with
|
Please try to use the docker container:
|
The container prints this log, and exits.
|
I'm also trying to get 2FA to work, But I'm afraid it's just not suppored in the cli but for completeness sake:
The above command does send me an sms with a code that I can use in the web interface to log in, but the login fails before I can do anything with it. |
Same here ... i'm on a ubuntu laptop and want to connect to our company F5VPN. We are using a 2FA VASCO-token which i can enter via Web-Form but via CLI (f5fpc) it does not ask for a token, only username and password are requested. Is it possible to add a switch in the CLI-tool to ask for a 2FA? |
@hablijack, as @JensTimmerman posted previously: It seem not to be supported by f5fpc client (they say "only username and password". But why do they have at least an option for client certificates?). Since my company also does not use it (yet), i can't develop/test anything in this direction. Maybe someone is willing to contribute to this project. |
+1 if there will be any solution for 2fa |
The session ID is all you should need for authentication, which you can get from visiting a VPN server in your web browser and logging in. Since that would be trivial to support and The first option, is, as @AntouanK mentions, the
The second option is a CLI-only option is the |
Some extra info. It is possible to run the non-cli version of the client that supports 2fa in a docker container. I have done that as an experiment. All that's remaining is to automate the auth to generate the token to pass into the docker container. I will do that when I get some time to play. So it is possible to use the same kind of set-up, with the other non-cli client. |
Oh, nice! Can you tell me how to put it in a Docker container? Then I can help with automatization. |
An update on CLI-only 2FA support: I adapted the aforementioned 2FA-supporting Project is zrhoffman/svpn-login. It run on Linux and Mac but should be able to run in Docker too. Update: Python 3 compatibility improved from >= 3.7 to >=3.6. |
I think for the 2FA one, we can see the implementation example of this https://github.com/zrhoffman/svpn-login or this https://github.com/zrhoffman/f5vpn-login, although this is not using official f5 client. Tested on my machine and it works. |
Wow, this is actually quite neat. This raises the question if we still would need to add the support in this project. This project was intended to get around of the forced default route using the VPN connection, and since both scripts of @zrhoffman provide the capability to disable (auto) route creation, it looks like he overtook the pole position for this kind of problem ;) So, what to do with this ticket / this project in general? Any opinions? Do you still require Docker support? |
If you're interested in a FOSS-only project that does Update: gof5 supports automatic route creation as of kayrus/gof5@ec83441bf2 |
Both of those projects look interesting. I haven't dug into it, but I assume that the |
@jocado FastPPP in gof5 was implemented from the beginning. If you're using a pppd (or ppp from FreeBSD) binary as driver, then HDLC is used. |
Ah, ok. Thanks for the info 👍 But, in that case I guess DTLS will be a sticking point. I know from personal experience that it can be quite beneficial, especially with poor internet connections. Automatic routes is unlikely to be an issue for most people, some people will even prefer that :) |
@jocado in my case F5 server pushes a list of As for the DTLS, F5 servers I work with don't support it, so I cannot test. |
@jocado recent gof5 supports automatic routes set, pushed from F5. Can you provide me an access to a F5 VPN server, which supports DTLS? I can implement it in the next version. |
@kayrus Unfortunately I'm not able to. I may be able to collaborate on it with you, and do the testing at on my side, although my golang experience is pretty limited. Would you like to try that approach ? |
Hey. Sorry to hijack the thread, but if anyone has a gateway that support Thanks ! |
As of v8.20 (2022-02-20), OpenConnect supports F5. After getting the session ID from the echo MRHSession=0123456789abcdef0123456789abcdef | sudo openconnect --protocol=f5 --cookie-on-stdin SERVERNAME |
Hi!
so all the clients fails to get VPN params. I was able to grab the logs from the F5 MacOS client (which connects successfully to the same VPN) and it seems it makes these requests:
|
Btw, I made an ubuntu vm, and tried the script from in there.
I get no errors, but my login is denied.
Could it be that it doesn't ask for the RSA code? ( the 2FA part )
From the same vm, using the f5vpn "app", I can get connected.
The text was updated successfully, but these errors were encountered: