Free NAT 384MB VPS
#71
(2017-10-09, 11:43:13 am)FlamesRunner Wrote: @IEpicDestroyer

Yep. OpenVZ will automatically reserve the IP, so it's safe to use the entire subnet for it. For example, if you chose 192.168.42.2 as your container IP, you may execute:

Code:
iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -o eth0 -j SNAT --to yourPublicIP


To allocate a port for a container, use:

Code:
iptables -t nat -A PREROUTING -p tcp -d yourPublicIP --dport 1234 -i eth0 -j DNAT --to-destination 192.168.42.2:80 


Set 1234 to the port on yourPublicIP that you'd like to forward to the container. Set 192.168.42.2 to the container's IP, and the port after the container's IP to the target port.

Hope this helps.


Sorry for bugging you about it again, not very good with Iptables...

I did the following:

Code:
iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j SNAT --to 216.200.116.xxx

Code:
iptables -t nat -A PREROUTING -p tcp -d 216.200.116.xxx --dport 2222 -i eth0 -j DNAT --to-destination 10.0.0.2:22


I tried to connect to it and it timed out, am I doing something wrong here?  The control panel shows that the VPS is up.

Thanks for your help!

Thank you FreeVPS.us for VPS 18 and Evolution Host for VPS 6!

Check out @coreyman's Free VPS Club for a free VPS with only 15 posts/month!
Now with new Sponsors!

[Image: img.php?userid=19987&vps2]
#72
@IEpicDestroyer

You must complete the steps listed in the prerequisites section of the page I mentioned earlier.

Also, https://openvz.org/Quick_installation_(l...figuration needs to be done to allow traffic forwarding.



It seems like It's a pain for users to install, so I'll build it into the installer for future installs. Sorry!
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }

#73
(2017-10-09, 12:18:08 pm)FlamesRunner Wrote: @IEpicDestroyer

You must complete the steps listed in the prerequisites section of the page I mentioned earlier.

Also, https://openvz.org/Quick_installation_(l...figuration needs to be done to allow traffic forwarding.



It seems like It's a pain for users to install, so I'll build it into the installer for future installs. Sorry!

Apparently everything was already done for me, guess the host's template was edited to make sure it worked with most people's applications...

I just used vzctl and entered into the container, this is what I saw when I did ifconfig.  It's running Ubuntu 14.04 x64.

root@ct1:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Somehow the networking wasn't set up properly on the VPS.  Can you take a look at that?

Thanks for your help!
Thank you FreeVPS.us for VPS 18 and Evolution Host for VPS 6!

Check out @coreyman's Free VPS Club for a free VPS with only 15 posts/month!
Now with new Sponsors!

[Image: img.php?userid=19987&vps2]
#74
@IEpicDestroyer

Doesn't look like the slave was installed properly. There were some commands that failed during installation.

I just attempted to install it on a Vultr VPS, and I went and ironed out any installation bugs. It might be easier just to reinstall your server and run the installer again.

Sorry about the inconvenience!
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }

#75
(2017-10-09, 1:04:10 pm)FlamesRunner Wrote: @IEpicDestroyer

Doesn't look like the slave was installed properly. There were some commands that failed during installation.

I just attempted to install it on a Vultr VPS, and I went and ironed out any installation bugs. It might be easier just to reinstall your server and run the installer again.

Sorry about the inconvenience!

Hmm... now that I think about it, right before the thing was complete, there was something that was skipped or "ignored" as it read, couldn't remember what it was because I also ignored the thing too..  I'll just reset the VPS and reinstall, the web server itself should be okay right?  I can leave it in tack right?

Edit: just reinstalled the slave, added back the slave access key, downloaded a template, and went to create a VPS. It did that but this displayed in the OS at the control panel for the container:

Operating System Container does not exist. Halting.

Something went wrong again? Last time it was able to create the container...

Edit #2: my bad, sorry, I disabled SELinux and than rebooted the VPS. It was able to load up, but same result for ifconfig in the container:

root@ct1:/# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Something's still a bit off... Double checked, and no visible error appeared when it was installing the packages onto the server. Something else?
Thank you FreeVPS.us for VPS 18 and Evolution Host for VPS 6!

Check out @coreyman's Free VPS Club for a free VPS with only 15 posts/month!
Now with new Sponsors!

[Image: img.php?userid=19987&vps2]
#76
@IEpicDestroyer

Would you mind if I had a look in your server? I'll have the NAT forwarding stuff configured for you.

Found the bug. You'll need to log on to your slave, and download https://raw.githubusercontent.com/Flames...nermanager, replacing /sbin/containermanager.

On the host node, download https://raw.githubusercontent.com/Flames...ctions.php and replace /admin/functions.php (relative to your web directory), and everything should work.

Thanks again!
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }

#77
(2017-10-09, 11:54:52 pm)FlamesRunner Wrote: @IEpicDestroyer

Would you mind if I had a look in your server? I'll have the NAT forwarding stuff configured for you.

Found the bug. You'll need to log on to your slave, and download https://raw.githubusercontent.com/Flames...nermanager, replacing /sbin/containermanager.

On the host node, download https://raw.githubusercontent.com/Flames...ctions.php and replace /admin/functions.php (relative to your web directory), and everything should work.

Thanks again!

Went and replaced the files and recreated the server, still no proper networking set up:

root@ct1:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@ct1:/# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
BROADCAST POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)



Your welcome to take a look at the slave, just let me know if you would like to.

Tried to add the IP address myself, not sure if I was doing it properly, but still no networking..

[root@server4 ~]# vzctl set 1 --ipadd 10.0.0.2 --save
Warning: configuration file for distribution ubuntu_1404_x86_64 not found, using defaults from /etc/vz/dists/default
UB limits were set successfully
Deleting IP address(es): 10.0.0.2
Adding IP address(es): 10.0.0.2
/bin/bash: line 710: /etc/init.d/network: No such file or directory
CT configuration saved to /etc/vz/conf/1.conf
[root@server4 ~]# vzctl restart 1
Restarting container
Stopping container ...
Container was stopped
Container is unmounted
Starting container...
Warning: configuration file for distribution ubuntu_1404_x86_64 not found, using defaults from /etc/vz/dists/default
Container is mounted
Adding IP address(es): 10.0.0.2
Setting CPU units: 1000
Setting devices
Container start in progress...
[root@server4 ~]# vzctl enter 1
entered into CT 1
root@ct1:/# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
BROADCAST POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@ct1:/#
Thank you FreeVPS.us for VPS 18 and Evolution Host for VPS 6!

Check out @coreyman's Free VPS Club for a free VPS with only 15 posts/month!
Now with new Sponsors!

[Image: img.php?userid=19987&vps2]
#78
I know this is still related, but this is going a bit away from the topic. The topic is(was?) about free servers and now heading towards debugging a control panel. Just sayin' Perhaps that discussion should be branched into its own topic. Just so we're clean.

Many thanks to FreeVPS for VPS #13 and ZXPlay for providing such an amazing service. (Read: How to get a VPS here.)
#79
@SLC

That's true @SLC; feel free to spin it off to the Programming and Scripts section.

@IEpicDestroyer

I am currently debugging on a newly spun up instance, and have determined that there's an issue with the panel not adding IPs properly. Also, I am working on making the NAT process easier with a utility in the administrator panel.

This is addressed in issue #10.
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }





Users browsing this thread: 2 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo