use 9 ports for websocket connections, and forward them to nginx
This commit is contained in:
parent
c757d9b204
commit
335eda0134
30
doc/iptables
30
doc/iptables
|
@ -1,15 +1,21 @@
|
|||
-- local
|
||||
iptables -t nat -A OUTPUT -p tcp --dport 6661 -j DNAT --to 192.168.1.59:9663
|
||||
iptables -t nat -A OUTPUT -p tcp --dport 6662 -j DNAT --to 192.168.1.59:9663
|
||||
iptables -t nat -A OUTPUT -p tcp --dport 6663 -j DNAT --to 192.168.1.59:9663
|
||||
iptables -t nat -A OUTPUT -p tcp --dport 6664 -j DNAT --to 192.168.1.59:9663
|
||||
iptables -t nat -A OUTPUT -p tcp --dport 6665 -j DNAT --to 192.168.1.59:9663
|
||||
iptables -t nat -A OUTPUT -p tcp --dport 6666 -j DNAT --to 192.168.1.59:9663
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6661 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6662 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6663 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6664 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6665 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6666 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6667 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6668 -j DNAT --to 192.168.1.59:80
|
||||
sudo iptables -t nat -A OUTPUT -p tcp --dport 6669 -j DNAT --to 192.168.1.59:80
|
||||
|
||||
-- prod
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6661 -j DNAT --to 91.121.106.120:9004
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6662 -j DNAT --to 91.121.106.120:9004
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6663 -j DNAT --to 91.121.106.120:9004
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6664 -j DNAT --to 91.121.106.120:9004
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6665 -j DNAT --to 91.121.106.120:9004
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6666 -j DNAT --to 91.121.106.120:9004
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6661 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6662 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6663 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6664 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6665 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6666 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6667 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6668 -j DNAT --to 91.121.106.120:80
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 6669 -j DNAT --to 91.121.106.120:80
|
||||
|
|
|
@ -448,8 +448,8 @@ var storage = {
|
|||
},
|
||||
params: {},
|
||||
options: {
|
||||
baseUrls: _.map([1,2,3,4,5,6], function(i) {
|
||||
return document.domain + ':' + (6660 + i);
|
||||
baseUrls: _.map(_.range(1, 9), function(i) {
|
||||
return 'socket.' + document.domain + ':' + (6660 + i);
|
||||
}),
|
||||
baseUrlKey: 'surl2',
|
||||
name: "site",
|
||||
|
|
Loading…
Reference in a new issue