Private IP addressing , routable now ? ..
Hy to all , I have a big big doubt , that I tought that I resolved , but now I realise that I don't , a mistery maybe an not understanding thing for me , let's explain to you :
In my contry , we have a forum , forum server's are in Bucharest .Administrator's can see all IP's of the user's who connect and post in the forum . But here come's the mistery.The administrator's sometime see in user's IP address { user's that are not in the internal netowrk with forum server's } private IP.How can , some user's that are not from internal netowrk with forum server's to apear in forum database's , with private Ip addressing ? There are user's fom outside Romania that appear with private IP , altough they should appear with a public / routable IP address ? no? really.
I though that user's in the internal netowrk with forum server's will appear with a private address { because they are on a itnernal netowrk with private Ip addressing } , but why other's user's appera with internal Ip / private Ip's to ? which are from far far away ?
I though that is something with tunnels , VNP's , or something like , that , or some problem's with database's that show's Private Ip for some admnistrative reason's , but many of them appear with them Pulbical , translated Ip address , routable one.
Can someone exlapin me the thing , altough I think is just a very simp,e thing ?
Thank's in advance !
In my contry , we have a forum , forum server's are in Bucharest .Administrator's can see all IP's of the user's who connect and post in the forum . But here come's the mistery.The administrator's sometime see in user's IP address { user's that are not in the internal netowrk with forum server's } private IP.How can , some user's that are not from internal netowrk with forum server's to apear in forum database's , with private Ip addressing ? There are user's fom outside Romania that appear with private IP , altough they should appear with a public / routable IP address ? no? really.
I though that user's in the internal netowrk with forum server's will appear with a private address { because they are on a itnernal netowrk with private Ip addressing } , but why other's user's appera with internal Ip / private Ip's to ? which are from far far away ?
I though that is something with tunnels , VNP's , or something like , that , or some problem's with database's that show's Private Ip for some admnistrative reason's , but many of them appear with them Pulbical , translated Ip address , routable one.
Can someone exlapin me the thing , altough I think is just a very simp,e thing ?
Thank's in advance !
Optimism is an occupational hazard of programming: feedback is the treament. (Kent Beck)
Comments
-
bighornsheep Member Posts: 1,506just because a script can track the internal private ip, doesnt mean the IP address is routable. Some older scripts can not process NAT information and therefore tracks the private ip instead of the public shared IP address.
I believe this was a problem with many CGI-based forums. Non-routable Private-class IP address means that you can't search for host such as 10.0.0.1 and expect your gateway to hop that to the next router because it will discard the request.Jack of all trades, master of none -
!30 Member Posts: 356ya , right , but why some IP's appear with the routable IP address { altough in internal netowrk they use a private one } and some appear with the private Ip address ? it is the same script :P
why some appear with the rotuable and some with the privateOptimism is an occupational hazard of programming: feedback is the treament. (Kent Beck) -
blackzone Member Posts: 82 ■■□□□□□□□□private IP address is not routable over the internet.
If you are the administrator of the network and web server, feel free to inspect. Else I probably suggest find some better thing to do with the time given to you. -
drpower555 Member Posts: 56 ■■□□□□□□□□Sometimes private IP's do escape into the wild. Through incorrect firewall settings or SOHO routers. Dont ask me how because I dont know. But there are a number of servers running on the internet specifically to collect these wild Private IP's, these servers are named, "blackhole". Look them up and check it out.Psychotic Anthropophobiac Android
-
keatron Member Posts: 1,213 ■■■■■■□□□□In an humble attempt to add some completion to this discussion, it should be pointed out that non-routable does not mean "can't be touched". With the proper use of SSH tunneling and/or GRE tunneling techniques, you can in a makeshift botchy fashion route to an internal host regardless of the class of IP. While it's not really routing in a traditional sense, the technique renders the same result as a traditional route. I might post a demonstration of this in the C|EH forum but I still haven't quiet decided what's a little too much to be posting on a public forum.
-
Webmaster Admin Posts: 10,292 AdminIn an even more humble attempt to add something to this topic: the administrator should configure the server to drop incoming requests with a source address in the private address range (to prevent spoofing attacks...) if this is not done already. Regardless of whether the forum software gets the connected IP address from the web server directly or the HTTP environment variable REMOTE_ADDR, both are not necessarily the real source.
-
Danman32 Member Posts: 1,243But how would the forum be able to reply to the packet if the source address was spoofed? It doesn't sound possible to complete a TCP connection with an spoofed private source address.
-
Webmaster Admin Posts: 10,292 AdminDanman32 wrote:It doesn't sound possible to complete a TCP connection with an spoofed private source address.
-
Danman32 Member Posts: 1,243But I thought the reporting mechanism was of connected IPs, not DoS IPs. I couldn't see a forum knowing anything about a spoofed packet without the TCP completing its handshake first.
Now if the forum had a script in it that ran client-side, then it could pick up the IP of the host running the browser rather than the connection the server sees. -
Webmaster Admin Posts: 10,292 AdminI'm not sure what else I could add that would add to the topic and without going into dangerous details, but I'll give it one more shot:But I thought the reporting mechanism was of connected IPs, not DoS IPs.
The report mechanism of the forum could also use a logging system, and not directly display the results from the server but what was logged to the database (over the past X minutes). In which case the IP address is 'merely' a field in the database, even less trustworthy (which could be injected/altered regardless of the real source IP, allowing a malicious individual (i.e. spambot) to prevent his real IP from getting banned.)
The main point is, you cannot just assume information to be authentic just because it 'should' work that way. Dropping private and other reserved networks should be mandatory rules in e.g. Linux's IP tables. If it doesn't solve the real problem, you will at least have considered and excluded it as a possible cause.