sethgo
Hello,
I'm trying to setup a post_auth script, which will allow certain users to connect from only whitelisted IP addresses. The issue I'm having is, I've been unable to get their WAN IP so that I can compare it to my list. I have tried multiple variables
(all in python)
authcred.get('client_ip_addr')
os.environ.get('trusted_ip')
os.environ.get('untrusted_ip')
For all of these, I either end up with '127.0.0.1' OR 'None'
Any tips would be greatly appreciated.
sethgo
I tried to edit my previous reply, but I guess that is disabled:
Anyway, this issue seems to be related to enabling the following feature in AS:
Service Forwarding
When TCP or Multi-daemon mode is chosen for the VPN Server protocol, the VPN Server can optionally provide access to these services through its IP address and port:
(and checking off Client Web Server)
I had this enabled, to get around restrictive firewalls that only allow port 80 and 443, but it seems there is no way to have the web server AND the vpn listen on port 443 while still capturing the IP address of the user.
again... any advice would be greatly appreciated.