If you connect to the webserver using a DNS name, you might try to add
the external hostname (the one that resolves to XXX) into the /etc/hosts
on the webserver zone. That will internally redirect all traffic from
the webserver to the local IP (YYY).
Jan
On 15. 6. 2017 16:30, Jesus Cea wrote:
I have a SmartOS zone running a webserver thru NAT. That is, the public
IP is XXX, but the SmartOS zone local IP is YYY. That works fine when
connecting from Internet, but I need to be able to connect to XXX from
inside the zone. Something similar to ipnat "rdr" to send locally
initiated connections to XXX transparently redirected to YYY. Ideally,
this should be able to work both in the local zone and other zones
running in the same etherstub.
I am trying something like ipnat's:
rdr net0 XXX port 80 -> YYY port 80 tcp
but it doesn't work neither in the webserver zone neither in other zones
in the same etherstub.
Suggestions?.
Thanks!.
PS: In linux, it would be something similar to
<https://www.cyberciti.biz/faq/linux-port-redirection-with-iptables/>.
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com