ipv4 access from ipv6-only-VPS

T.Kawabata

New member
Everyone, I want to run a script collecting and analyzing internet websites using like wget command on VPS.
Is there any way to get ipv4 webpages from VPS which has only ipv6?
I know a couple of ways to get ipv6 website from ipv4 like softether or tunnelbroker. I haven't found opposite one so far.
Any suggestion like technical thing, services and ideas are welcome.
 

smalpierre

New member
Question 1 - is why would you have an ipv6 only vps? Ipv6 was coming about around y2k - because we were supposedly running out of address space. NAT routers fixed all that pretty much, and made ipv6 moot.

Then there's the security issues with ipv6 - something about mac addresses being part of the identifier publicly ...

Question 2 - who in their right mind would build a car that only drives on 1% of the roads?

I'd ditch that VPS and find one that was more useable.
 

T.Kawabata

New member
smalpierre said:
Question 1 - is why would you have an ipv6 only vps? Ipv6 was coming about around y2k - because we were supposedly running out of address space. NAT routers fixed all that pretty much, and made ipv6 moot.

Then there's the security issues with ipv6 - something about mac addresses being part of the identifier publicly ...

Question 2 - who in their right mind would build a car that only drives on 1% of the roads?

I'd ditch that VPS and find one that was more useable.

>> Question1:
Fortunately Gigarank gave me a very good opportunity to start thinking of ipv6 by giving me a ipv6-only-VPS. :) . Thank you very much .

>> Question1:
I guess ipv6-only-VPS may have cost advantage then it would be getting increase. What are your opinions?
 

smalpierre

New member
Ah now I get it :) I didn't know the free VPS here was IP6 only. I'ts hard to argue with free!

I'm not sure it's possible to communicate over v4 in that case, but maybe with some kind of network black magic.

Check out NAT64, maybe some kind of VPN connection to a machine at your house where you can get an ip4 address and route it?
 
I think he is still confused what IPv4 and IPv6 is. IPv4 and IPv6 are just IP addresses. So, what you would need to do is use a file to scan for IPv4. Also, if you are an IPv6 server, then all people on IPv4 will still be able to access your IP address.
 

Genesis

Administrator
Staff member
strokerace said:
Also, if you are an IPv6 server, then all people on IPv4 will still be able to access your IP address.
People on the IPv4 server have to have their server IPv6 enabled first before they can access an IPv6 Website. It's fairly easy to get from IPv4 to IPv6. Most servers are IPv6 enabled. But the other way round is slightly tricky. You need a tunnel broker to help you. Here's a list from Wikipedia:
http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers

Ones that come highly recommended are:
http://www.gogo6.com/main
http://www.he.net/
https://www.sixxs.net/
 

smalpierre

New member
Tunnel brokers are going to basically work like the nat64/vpn way - except much easier to do it with a cloud service than setting up your own gear.
 

Genesis

Administrator
Staff member
smalpierre said:
Tunnel brokers are going to basically work like the nat64/vpn way - except much easier to do it with a cloud service than setting up your own gear.
True. I've been looking for a Cloudflare alternative - any one heard of Incapsula before? Looks as though they also provide the same service. Not sure whether it is free to free accounts as well.
https://www.incapsula.com/blog/ipv6-support-and-ipv6-gateway.html

Note: Incapsula does provide IPv6 support to its Free Accounts:
https://www.incapsula.com/pricing-and-plans.html
 
T.Kawabata said:
Genesis said:
@T.Kawabata have you tried Cloudflare yet?
http://forum.lowendspirit.com/viewtopic.php?id=441

Oh yes, I competed the setting and my VPS webserver can be access from both ipv4 and ipv6 using cloudflare. I appreciate your advice.
I think this thread topic is different story. I have not found the way to access to ipv4 website from my VPS yet.

I didn't know you could access any websites from a web server? Are you sure you don't mean something else?
Maybe you don't have your sever set up to allow out going connection.
 

smalpierre

New member
Sure stroke - it's a computer hooked up to the internet. If you only have a hosting account vs a vps, you can still hook up to web services and stuff like that with PHP. Before web services were popular, you could still screen scrape to get data. That's done basically by requesting a page, then parsing what you want to grab out of the html it returns.
 

Genesis

Administrator
Staff member
Found the following setup suggestion (there are a few if you Google how to set up IPv6 on a VPS):
http://www.betweendots.com/topic/3-enable-ipv6-on-your-centos-redhat-server/

Capture.png
 
smalpierre said:
Sure stroke - it's a computer hooked up to the internet. If you only have a hosting account vs a vps, you can still hook up to web services and stuff like that with PHP. Before web services were popular, you could still screen scrape to get data. That's done basically by requesting a page, then parsing what you want to grab out of the html it returns.


No. Its a webserver, regardless of weather its VPS or not. You are always hooked up to the internet. You can using wget to update all the software you git to download software to the server. I think some of you are a bit confused about what a he is up to here. I think he is not telling everyone the whole story here. From my knowledge and stuff I have read, there should be no issues and doesn't need to do any tunneling whats so ever.
 

smalpierre

New member
I didn't know you could access any websites from a web server? Are you sure you don't mean something else?
Maybe you don't have your sever set up to allow out going connection.

I was responding to that - and noting that even if you're on a hosted account without any direct server access, you can access other sites from it.

Yeah, there's no telling exactly what he's trying to do. If he's only got ipv6 though it will require some kind of proxy or something like it that can route the traffic to get to an ipv4 network. That's what nat64 does afaik.
 
T.Kawabata said:
All , Thank you for your response. I try to clarify what I want to do as simple as possible.

1. ssh my ipv6-only-vps
2. wget http://www.google.com
=> success to get the contents because it is available for ipv6 .
3. wget http://vzdownload.swsoft.com/download/mirrors/
=> error. because it is only ipv4 address.

No. You need to connect to the directory that you want. Also, those are empty directories. I can't even see any files. Not all sites are accessable with wget. If you are trying to down load centos, you will need to go to their offical site to use wget the tarball and then run the usual commands.

Try this link to centos 7 http://vzdownload.swsoft.com/ez/packages/centos/7/$ARCH/os/

Here are some links that will help you with wget and downloading your O/S
http://www.tecmint.com/10-wget-command-examples-in-linux/
http://www.guyrutenberg.com/2014/05/02/make-offline-mirror-of-a-site-using-wget/
http://stackoverflow.com/questions/...nload-a-file-and-save-as-a-different-filename
 

smalpierre

New member
Upon further inspection, it appears that a lot of these "solutions" like 6to4 are only to tunnel an ipv6 connection through ipv4 routers - it just wraps the ipv6 packet inside an ipv4 one. That won't help you at ALL. This is why strokerace was saying you don't need a tunnel - because that's just transmitting ipv6 over an ipv4 backbone - both endpoints still have to be v6 in that case.

I was talking about using a vpn basically to connect to another local network that you have control over so you could run your own proxy without having it exposed on the internet - still a tunnel, but a different kind, for a different reason.

Lots of people are saying it's impossible because ipv4 and ipv6 are different protocols - different networks. While the latter is true, the former is not.

The higher level protocols are encapsulated in the lower level ones. So the http protocol requests are packaged inside either ipv6 or ipv4 packets, which are in turn packed into TCP , which is in turn packed into ethernet frames.

In theory a proxy server works like this - you make an http request, which in your case is over ipv6. Instead of trying to directly connect to the server (which will error since it's not on the ipv6 network) you connect to the proxy which is bilingual (v4 and v6) which then makes the request to the intended server on your behalf over ipv4 - it handles the response by stripping the request and repacking it in ipv6 to send back to you.

So it IS possible, but there's so many people out there trying to do weird stuff rather than useful stuff - and very VERY few doing anything useful in that regard.

Here's a proxy though - I haven't tried it, but it looks really easy to use - no settings on the server, you simply take the domain you want to access - like http://vzdownload.swsoft.com/download/mirrors/

and append .sixxs.org to it - so the request would be http://vzdownload.swsoft.com.sixxs.org/download/mirrors/

https://www.sixxs.net/about/technology/ipv6gate/

Note of warning - they do say that you're not supposed to use automated tools with their service - no torrents, or rss feed readers so it'll get you where you want to go for now if you're not making a ton of requests or bogging down their network - but you should look into other solutions.


I'm checking out cloudflare right now. It seems to me that it allows ipv6 users to connect to YOUR website, but not the other way around. That's what most every solution for the ipv6 diliema is all about, and exactly why they don't help.

What cloudflare does as far as I can tell is you set your domain to point to their dns servers. Their server accepts requests to your site, and translates accordingly. When you make an outbound request to another site it's not using cloudflare. I've never set up proxy settings in Linux, but I'm sure it's something like Windows - it's in the network adapter settings. The proxy server settings tell your network adapter that when you make a request - like http://www.google.com to instead send the request to the proxy which in turn makes the request to google.com and returns you the result. That is what sixxs.org does - they just do it without changing settings - which is why they have to rewrite all the links on a page to add .sixxs.org, If they didn't every link you clicked would try to request directly from the site - and fail.

Anyway - I'm trying to dig up something that'll do what you want :)


QUESTION!!!

Do the vps's not have at least an nat'd ipv4 address? That's all you'd need to access ipv4 sites ...
 

smalpierre

New member
I think Stroke might have hit it - I didn't see his response earlier. I should have thought more about what was actually needing to get done vs what the assumed problem to be solved was ;)

I was thinking for some reason you were having a script requesting things - use the sixxs method for what you're doing. Then you'll know for sure if it's something wonky with wget.

Those directories are empty, and when I remove the directories and hit http://vzdownload.swsoft.com/ it redirects to parallels.com - which is Apples virtualization for Mac

Might want to rethink a few things - do an ifconfig and see if you've got an ipv4 address - I bet you do.

Sites that block wget do this via the user agent. You can change that if that's causing a problem.

http://stackoverflow.com/questions/10279052/url-is-not-accessible-through-wget-e-or-script