I have following network configuration.
+---------------+
| Raspberry +------+
| 192.168.1.130 | | +--------------------+ +-------------------+
+---------------+ +----------+ |wan | |
lan | Router +----------+ internet.. |
+---------------+ +----------+ 192.168.1.1 | | |
| User | | +--------------------+ +-------------------+
| 192.168.1.111 +------+
+---------------+
Raspberry running nginx as proxy on port 3128.
In router there is DNAT : 80 -> 192.168.1.130:3128 wich means I want to forward all traffic to raspberry nginx.
Problem - nginx does not log any access - and I can't get out to the internet on 80 port.
If I directly put nginx ip and port in browser proxy configuration it works, but i want define it in router.
Any ideas?
Raspberry info:
Linux raspberrypi 3.18.3+ #741 PREEMPT Fri Jan 23 13:32:52 GMT 2015 armv6l GNU/Linux
pi@raspberrypi$ cat /proc/sys/net/ipv4/ip_forward
1
iptables - off
检查您的ISP,并确保它们没有阻止端口80。如果阻止了端口,则必须通过非阻止端口从Internet访问,并将该端口转发给rasp pi。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.