Results 1 to 3 of 3
I'm trying to ensure that only the following two networks have access to my web server - running https only.
10.1.1.0/24
and
192.168.1.0/24
Could someone explain to me how this ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-26-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 4
Confusion about iptables configuration
I'm trying to ensure that only the following two networks have access to my web server - running https only.
10.1.1.0/24
and
192.168.1.0/24
Could someone explain to me how this is done? Note, I've never successfully used IPtables before, so feel free to talk to me like an idiot
If needed, my distro is Ubuntu Server 10.4
- 05-30-2010 #2
This should get your started;
This should get your further;Code:iptables -P INPUT DROP iptables -P OUTPUT ACCEPT iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT iptbales -A INPUT -m state --state NEW -s 10.1.1.0/24 --dport 443 -j ACCEPT iptables -A INPUT -m state --state NEW -s 192.168.1.0/24 --dport 443 -j ACCEPT
IPTABLES TUTORIAL
- 05-31-2010 #3Just Joined!
- Join Date
- May 2010
- Posts
- 4
Thanks a ton!
That does it. Thanks!


Reply With Quote
