I'm new to iptables and think I may have gotten the syntax for what I want to do. Basically, what I want to do is make sure that two IP addresses have access to print to the networked printer ONLY
and to reject any other access attempts on any other ports to any other IPs.
So, here's part 1 of my question:
#Allow traffic from Business Center Computers to the network printer for the port alloted for printing only
iptables -A INPUT -i (Interface) -s (PC.IP.address-PC.IP.address) -d (Printer.IP.address) --dport (Printer Port) -j ACCEPT
#Deny all other traffic across this connection from the Business Center Computers
iptables -A INPUT -i (Interface) -s (PC.IP.address-PC.IP.address) all -j DROP
...do what I want?
How do I make sure this starts on boot every time.
Oh, and one other wrench in the gears of this project, I'm trying to implement this on a DD-WRT router. <---That's probably the most important part.