LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Vpn with ip alias (https://www.linuxquestions.org/questions/linux-networking-3/vpn-with-ip-alias-4175460673/)

devilrox 05-04-2013 05:44 AM

Vpn with ip alias
 
Hello to everybody and really thank you for this great service.

I'm looking for this information on google from days with no success and hope to find somebody that knows the answer here.

I have a dedicated server with a real IP configured on eth0 and a secondary ip address configured on eth0:0 as alias and provider has router second ip on the primary ip, so i can ping both ips from anywhere with success.

I configured a pptp service on the dedicated server and can connect and surf correctly from any clients, problem is that also if i connect the vpn trought the secondary ip address when i check my ip i always see the primary ip address instead the secondary, i tried to route all traffic with:

route add -host IPALIAS dev eth0:0, but no success with it.

somebody now as i can get outbound on internet with the aliased-ip instead real ip???

Thank you so much
Marco

Ygrex 05-07-2013 05:33 AM

how do you check your IP-address?

devilrox 05-07-2013 07:50 AM

Hi, thank you for your reply..i check it online on http://www.lawrencegoetz.com/programs/ipinfo/ why?

Ygrex 05-08-2013 02:27 AM

well, then it is nothing about the IP-address you connect to when establishing VPN, it is about NAT

devilrox 05-08-2013 02:34 AM

ohh i don't mind it, and is there any solutions to display the ip instead? thank you

Ygrex 05-08-2013 03:49 AM

sorry? what do you want to do? if you need the site to display another IP-address, configure NAT properly on your dedicated server


All times are GMT -5. The time now is 11:16 AM.