cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
378
Views
1
Helpful
2
Replies

What is my IP addess if I am connected with AnyConnect VPN ?

ron-karim
Level 1
Level 1

We need to create a whitelist to open up critical ports on remote servers for only specific IP addresses. Critical ports like database (1521), SSH (22) , 80, etc. that only approved computers can login using SSH, access database, etc.

Trying with IP address from many internet websites like WhatsMyIpAddress, etc do not provide a valid IP address for the whitelist, so, that is not what those remote servers (also under corporate VPN)  are seeing.

When I try on a client linux shell with commands that usually work, it hangs when Cisco VPN is turned on. For example : $ dig -4 TXT +short o-o.myaddr.l.google.com @NS1.google.com hangs when VPN is ON. Works perfectly when I disconnect VPN.

We have to have the corporate Cisco VPN turned on to work on these remote servers.

I can do a netstat -r on Windows command line, but do not know if any of those IP addresses are the router address.

Appreciate any help from experts in this forum on finding out what the my IP address is when VPN is turned ON that is visible to the remote servers under VPN as well.

 

1 Accepted Solution

Accepted Solutions

Pulkit Mittal
Spotlight
Spotlight

I have seen at times when I am connected to a SWG gateway, my IP on WhatsMyIpAddress is different from the one which comes up here IP Chicken - What is my IP address? Free public IP lookup. which is my actual SWG gateway IP. Try this.

If you find this useful, please mark it helpful and accept the solution.

View solution in original post

2 Replies 2

Pulkit Mittal
Spotlight
Spotlight

I have seen at times when I am connected to a SWG gateway, my IP on WhatsMyIpAddress is different from the one which comes up here IP Chicken - What is my IP address? Free public IP lookup. which is my actual SWG gateway IP. Try this.

If you find this useful, please mark it helpful and accept the solution.

ron-karim
Level 1
Level 1

This works for some scenarios but not all, for example, I can open a browser port and access the an apache webserver on the remote server (port 8080) when I opened up port 8080 with my remote client IP address that I got from IP Chicken link above, but does not open up access to SSH port (port 22) for a command line ssh:

@Localhost ~]$ ssh -Xv -i ./myoas-pvt.key oracle@129.146.86.62
OpenSSH_8.7p1, OpenSSL 3.0.7 1 Nov 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 129.146.86.62 [129.146.86.62] port 22.
debug1: connect to address 129.146.86.62 port 22: Connection timed out
ssh: connect to host 129.146.86.62 port 22: Connection timed out