What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

nat-start question

TheMystery

New Around Here
I have a question for the nat-start script.

I want that a port is only available from one specific ip address.
So i added the following line:
iptables -t nat -I VSERVER 3 -p tcp -m tcp -s [specific ip] --dport 443 -j DNAT --to 192.168.1.10

I can now only open de web page from the specific ip address with my domain name.
This is working correctly.

Now i want to open de site within my own network with my domain name so i thought i add the same line with my external ip adress, but than it is'nt working.
It is working if i use the default virtual server / portforwarding option.

I looked on the internet and i think that i have to use masquerading.
I see that masquerading is default used in the script in /tmp/nat_rules.
Is this masquerading not used in the nat-start script?
Do i need to add masquerading in the nat-start script? and does anyone know how this line looks like?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top