Remote Connect openshift MySQL

Source: Internet
Author: User
Tags iptables

Re-RHC Port-forward <app-name> in virtual machine

At this point, you can access the 127.0.0.1:8080 landing page on the local computer, 3306 connection sql

Https://unix.stackexchange.com/questions/111433/iptables-redirect-outside-requests-to-127-0-0-1

https://serverfault.com/questions/551361/redirect-incoming-packets-to-loopback/702685

As described above will

sysctl -w net.ipv4.conf.eth0.route_localnet=1



Http://forums.justlinux.com/showthread.php?136144-SOLVED-hosts-file-redirecting-a-outgoing-ip-address-to-localhost


sudo iptables-t nat-a prerouting-d 192.168.252.30-j DNAT--to-destination 127.0.0.1

sudo iptables-t nat-a output-d 192.168.252.130-j DNAT--to-destination 127.0.0.1

Discover the IP address of the eth0 that can be used within the virtual machine with the virtual machine: 8080, but still not on the host http://192.168.252.130:8080/

Remote Connect openshift MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.