Hi,

my home network is like:

ISP
|
- Cable modem
__|-- headless server Bubba2, Gentoo linux ( firewall, router )
____|-- plug & play Switch
______|-- desktop machine, Gentoo linux
______|-- raspberry pi 2 RasPi, Gentoo linux ( webserver- nginx )

I have a registered FQDN: cspl.hu so I want to use it on RasPi's webserver.
RasPi's webserver is reachable from the Internet ( I think, because
I'm at home right now).
I can reach RasPi webserver from the LAN using it's LAN IP address:
http://192.168.50.200 .
It's IP address is always the same, because of dnsmasq's setup on Bubba2.
But, I can't reach it from LAN when use http://cspl.hu .

Rules are on Bubba2:
# allow local network users to reach my webserver
Web(ACCEPT)     loc             $FW
Web(ACCEPT)     loc     loc:192.168.50.200

# DNAT forwarding Web to RasPi
Web(DNAT)       net     loc:192.168.50.200

# To can reach cspl.hu from LAN
DNAT    loc             loc:192.168.50.200      tcp     80      -
 192.184.88.81

Rules on RasPi:
# allow reaching my Webserver from the Internet
Web(ACCEPT)     net     $FW

Can I set up my network so so RasPi can be reachable from LAN with
it's FQDN: cspl.hu?

-- 
Best, Pali

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to