Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-16-2016, 07:39 AM
|
#1
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Rep: 
|
ifconfig not showing ip address
I am looking to install openvpn.
Apparently, ifconfig will show my ip address under eth0.
However, the
Code:
inet addr:192.xxx.1.xx
is not my ip address.
Tutorials on openvpn seem to be saying the 'inet addr' must correspond with my ip address.
So what will I need to do before even installing openvpn?
Last edited by trumpforprez; 11-16-2016 at 09:46 AM.
|
|
|
11-16-2016, 08:41 AM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
192.168.1.98 is a valid private address, this is what you get behind a NAT router.
|
|
|
11-16-2016, 08:56 AM
|
#3
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Original Poster
Rep: 
|
Quote:
Originally Posted by Emerson
192.168.1.98 is a valid private address, this is what you get behind a NAT router.
|
Thank you. So what is the command to find my correct ip address on linux?
I can get this info from websites but how do I get from my OS?
What is the point of ifconfig showing me a private address when the net can easily access my real ip?
Also, when I have to input my ip with openvpn, which ip do I choose?
The valid private address or my real ip address?
|
|
|
11-16-2016, 09:05 AM
|
#4
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
I think you have some reading to do. Start here.
|
|
|
11-16-2016, 09:24 AM
|
#5
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
you shouldn't give out your actual IP address
this on is not obtainable but nevertheless better safe then sorry.
Last edited by BW-userx; 11-16-2016 at 09:30 AM.
|
|
|
11-16-2016, 09:34 AM
|
#6
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
My IP address is 209.124.235.14. Now what? My ports (as everyone else's) are scanned all the time, revealing my IP address will not change anything.
|
|
|
11-16-2016, 09:54 AM
|
#7
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by Emerson
My IP address is 209.124.235.14. Now what? My ports (as everyone else's) are scanned all the time, revealing my IP address will not change anything.
|
whatever dude, I am happy you can sleep good at night knowing your protected.
|
|
|
11-16-2016, 09:56 AM
|
#8
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Quote:
Originally Posted by BW-userx
whatever dude, I am happy you can sleep good at night knowing your protected.
|
This makes two pointless posts in this thread. Are you posting to increase your post count?
|
|
|
11-16-2016, 09:58 AM
|
#9
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by Emerson
This makes two pointless posts in this thread. Are you posting to increase your post count?
|
NOPE just going by what I've read on the internet as a rule of thumb.
you want to talk about pointless post look at this thread, a personal conversation between two with nothing to do with the OP
http://www.linuxquestions.org/questi...33#post5631133
just speculation on the possibilities .
Last edited by BW-userx; 11-16-2016 at 10:00 AM.
|
|
|
11-16-2016, 10:01 AM
|
#10
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Original Poster
Rep: 
|
Well now I don't know what my ip address is.
On Whatsmyip, the site gave me my ip adress, the town I live in, and my net provider!
So I'm guessing it's my correct ip.
But why is ifconfig giving me a different ip address?
Also, does anyone not have openvpn?
I thought almost everyone would have it!
|
|
|
11-16-2016, 10:09 AM
|
#11
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Quote:
Originally Posted by trumpforprez
Well now I don't know what my ip address is.
On Whatsmyip, the site gave me my ip adress, the town I live in, and my net provider!
So I'm guessing it's my correct ip.
But why is ifconfig giving me a different ip address?
Also, does anyone not have openvpn?
I thought almost everyone would have it!
|
So you are unwilling to learn what NAT routing is and want spoonfeeding? You have to wait then, I will not do that, maybe someone else is in mood.
|
|
|
11-16-2016, 10:13 AM
|
#12
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Original Poster
Rep: 
|
Quote:
Originally Posted by Emerson
So you are unwilling to learn what NAT routing is and want spoonfeeding? You have to wait then, I will not do that, maybe someone else is in mood.
|
I have looked up nat on Wikipedia.
It's just info on nat.
It doesn't explain why ifconfig gives the wrong ip address.
Also, I still don't know if I can proceed with installing openvpn because of a simple problem from the very beginning!
|
|
|
11-16-2016, 10:18 AM
|
#13
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
you have a router that has an ip to the outside word, then that router gives out address to everything attached to it on the "inside" world, network -> intranet or internet?
ifconfig will give you your IP address. gateway ip is for what
https://www.cyberciti.biz/faq/how-to...ay-ip-address/
Last edited by BW-userx; 11-16-2016 at 10:23 AM.
|
|
1 members found this post helpful.
|
11-16-2016, 11:02 AM
|
#14
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
you have a router that has an ip to the outside word, then that router gives out address to everything attached to it on the "inside" world, network -> intranet or internet?
ifconfig will give you your IP address. gateway ip is for what
https://www.cyberciti.biz/faq/how-to...ay-ip-address/
|
I am getting the same outputs as shown on your link when I use and I went onto whatsmyipaddress and got a dynamic ip address - but it still had personal details like town and ISP.
I rebooted the pc and switched the router off and on again.
I found a different dynamic ip on whatsmyipaddress.
So this must mean the dynamic ip isn't my real ip.
My real ip must be the one shown on ifconfig.
If I use openvpn, then go to whatsmyipaddress, it'll show me another dynamic ip but this time it won't know my personal details.
It'll only see details of an openvpn server.
|
|
|
11-16-2016, 11:20 AM
|
#15
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by trumpforprez
I am getting the same outputs as shown on your link when I use and I went onto whatsmyipaddress and got a dynamic ip address - but it still had personal details like town and ISP.
I rebooted the pc and switched the router off and on again.
I found a different dynamic ip on whatsmyipaddress.
So this must mean the dynamic ip isn't my real ip.
My real ip must be the one shown on ifconfig.
If I use openvpn, then go to whatsmyipaddress, it'll show me another dynamic ip but this time it won't know my personal details.
It'll only see details of an openvpn server.
|
key word
dynamic
as apposed to
static
|
|
|
All times are GMT -5. The time now is 08:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|