Hi,
I am adding new server to my network.
Public IP = X.X.X.X
Private IP = Y.Y.Y.Y
And it does not work.
Changes I did were:
I already have eight servers running, this is the new one I am adding.
Thanks.
I am adding new server to my network.
Public IP = X.X.X.X
Private IP = Y.Y.Y.Y
And it does not work.
Changes I did were:
- In rc.conf, I added an alias:
Code:ifconfig_em0_alias23="inet X.X.X.X netmask 255.255.255.255"
- Created a NAT file in /etc/nat/
Code:#Host.com #interface em0 alias_address X.X.X.X port 9012 same_ports dynamic redirect_address Y.Y.Y.Y X.X.X.X punch_fw 30000:1000
- Changes in rc.local, added,
Code:/sbin/natd -f /etc/nat/host.com
- Created rules for NAT & Access in rc.firewall:
Code:#Host.com ${fw} divert 9012 ip from any to X.X.X.X ${fw} divert 9012 ip from Y.Y.Y.Y to any internal="Y.Y.Y.Y" external="X.X.X.X" # allow any traffic out ${fw} allow log tcp from $internal to any setup ${fw} allow log tcp from $external to any setup ${fw} allow log udp from $internal to any setup ${fw} allow log udp from $external to any setup # DNS Queries ${fw} allow log udp from $internal,$external to any 53 ${fw} allow log udp any 53 to $internal,$external # tcp ports ${fw} allow log tcp from any to $internal 80,443,2222,9080,9443 setup
I already have eight servers running, this is the new one I am adding.
Thanks.