Configuring iptables
Posted: Tue Jul 03, 2007 3:10 pm
I've read through a few tutorials and learnt the basics of opening and closing ports but it's got to the point now where I need to allow certain ports to certain IPs. The tutorials don't seem to cover this, or they do and I don't quite understand where the examples are for that so I was hoping somebody could show me the line iptables would accept to block all incoming connections to a specified port, besides a specified IP.
The problem is that I have Samba running on a server which is a DMZ host and I only want the internal network to be able to access the Samba server. The router's hard to work with and the last time I tried to disable DMZ and port forward the required ports I locked myself out and spent 25 minutes on the phone guiding somebody through enabling DMZ again.
If you can see another way to only allow internal traffic to access Samba it would be good if you showed me, using a firewall seems a dirty way to do the job.
The problem is that I have Samba running on a server which is a DMZ host and I only want the internal network to be able to access the Samba server. The router's hard to work with and the last time I tried to disable DMZ and port forward the required ports I locked myself out and spent 25 minutes on the phone guiding somebody through enabling DMZ again.
If you can see another way to only allow internal traffic to access Samba it would be good if you showed me, using a firewall seems a dirty way to do the job.