I have an Ubuntu machine running as a firewall. This machine has our static IP configured on eth1. It is connected to our network via eth0.
I have a new server running Server2012 with IIS installed. It is a sharepoint server. I need the sharepoint server to be accessible to the internet and the local network via a domain name. i.e. "awesomebox.net"
What is the IPTables rule I need to make this happen?
Where I'm at:
I have a rule in the nat table to redirect incoming requests to our sharepoint server. It works OUTSIDE our building. When I try to access it from INSIDE our building, I get the apache server on our local firewall.
sudo iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 10.100.XX.XX:80 sudo iptables -A FORWARD -i eth1 -p tcp --dport 80 -d 10.100.XX.XX -j ACCEPT sudo iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 443 -j DNAT --to 10.100.XX.XX:443 sudo iptables -A FORWARD -i eth1 -p tcp --dport 443 -d 10.100.XX.XX -j ACCEPT
What am I missing here?