LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Shorewall help needed to send an ip only to a specific address (https://www.linuxquestions.org/questions/linux-networking-3/shorewall-help-needed-to-send-an-ip-only-to-a-specific-address-658637/)

tallmtt 07-27-2008 06:34 PM

Shorewall help needed to send an ip only to a specific address
 
I have set up a firewall on my server/router and would like to send anyone with a specific IP (such as 192.168.1.130) to my firewall (running apache - with IP 192.168.1.1) when they attempt to access the internet (but everyone else with other IPs could continue on to the internet.

I am confused with the terminology. I am using webmin with shorewall. I think under rules, I need my loc zone with the specific IP address to either REDIRECT or DNAT to another IP, but the phrasing is unhelpful in the documentation.

Any and all help is appreciated! Thanks.

FYI: My zones are "loc" for inner network, "net" for internet, and "fw" for firewall.

jomen 07-29-2008 03:29 AM

All traffic is flowing through the firewall - else it would be useless.
The firewalls rules are applied to that traffic.
You want to block specific IP's inside your LAN from making outgoing connections to the internet while allowing all others to do that?

Maybe rephrasing it this way helps?

tallmtt 07-30-2008 10:13 AM

The more lengthy story is that I have split my network in dhcpd.conf file with specific IP's given to trusted hosts (via MAC addresses), and for all other clients I want to provide a non-encrypted network that goes to one site - On my firewall.

I do not want them to reach the Internet!

So as you said...

Quote:

You want to block specific IP's inside your LAN from making outgoing connections to the internet while allowing all others to do that?
Yes.

Thanks for having me clarify - hopefully it helps :)

tallmtt 08-02-2008 10:47 PM

I still have been unable to solve this - Anyone with any ideas?

Mr. C. 08-03-2008 01:52 AM

Do you want to only redirect port 80/443 (HTTP/HTTPS) traffic? What do you want to occur for all other TCP/IP traffic for the restricted clients?

tallmtt 08-05-2008 06:27 PM

If someone could direct me in how to redirect ports 80/443 I could figure out how to add/change anything in the future.

For now, just redirecting ports 80 and 443 would be sufficient to help me out - thanks :)


All times are GMT -5. The time now is 01:37 PM.