Comments (7)
sudo
for everything
from mehserve.
Actually, for loopback support we need:
iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 12439
from mehserve.
service dnsmasq restart
from mehserve.
sudo iptables-save
from mehserve.
Just use 127.0.0.1
otherwise things that bind specifically to that host will fail to receive the network requests.
from mehserve.
(For historical reference, issue description was originally
sudo apt-get install dnsmasq
echo > /etc/dnsmasq.d/dev-tld <<<HERE
local=/dev/
address=/dev/127.0.0.5
HERE
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 12439 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 12439
)
from mehserve.
Done
from mehserve.
Related Issues (12)
- DNS port should be configurable. HOT 3
- On first `mehserve` command, `mkdir ~/.mehserve` HOT 1
- Add --version flag
- `ECONNRESET` not being handled HOT 1
- SSL Cert generation not working on OS X Catalina HOT 6
- SSL instructions for Ubuntu HOT 1
- ERR_CERT_WEAK_SIGNATURE_ALGORITHM HOT 1
- Invalid Host header HOT 4
- Request: more transparent configuration HOT 1
- mehserve crashes when one of the dev services goes down HOT 3
- so.. any plans on starting servers automatically, like pow does? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mehserve.