For several months, during evenings and weekends, I have been building
a RH7 replacement for my Win98. RH7 is installed and works as expected.
I installed a new network card to talk to my DSL and that works.
I have done a fair amount of reading about setting up a firewall with
ipchains but I am having trouble clearing the fog. All of the examples and
discussions on ipchains that I have found describe setting up a machine
as a firewall between the internet and an intranet of some other machines
using two ethernet interfaces. However, I just have the one machine with one
interface, eth0. I need to set up some ipchains rules that will close my
machine and then allow my machine to use the internet and to run an Apache
web server.
I can see how these turn of the three streams, (input, output, and forward)
/sbin/ipchains -A DENY -j input
/sbin/ipchains -A DENY -j output
/sbin/ipchains -A DENY -j forward
[...working from memory - I might have the wrong tag, '-j' or other not quite right]
THE QUESTION: once everything is DENIED, is it possible to add two rules?
One that will allow TCP traffic to/from the world that is initiated by my machine?
And a second to allow TCP traffic from the world to hit Apache on port 08?
I have tried a number of rules, but, I must be approaching the idea incorrectly.
I have tried a number of rule configurations with no luck.
It seems like I should be able to add two fairly straight forward lines to get the
desired effect.
Any examples or pointers to good ipchains primers would be appreciated.
Thanks
keep the rudder amid ship and beware the odd typo
a RH7 replacement for my Win98. RH7 is installed and works as expected.
I installed a new network card to talk to my DSL and that works.
I have done a fair amount of reading about setting up a firewall with
ipchains but I am having trouble clearing the fog. All of the examples and
discussions on ipchains that I have found describe setting up a machine
as a firewall between the internet and an intranet of some other machines
using two ethernet interfaces. However, I just have the one machine with one
interface, eth0. I need to set up some ipchains rules that will close my
machine and then allow my machine to use the internet and to run an Apache
web server.
I can see how these turn of the three streams, (input, output, and forward)
/sbin/ipchains -A DENY -j input
/sbin/ipchains -A DENY -j output
/sbin/ipchains -A DENY -j forward
[...working from memory - I might have the wrong tag, '-j' or other not quite right]
THE QUESTION: once everything is DENIED, is it possible to add two rules?
One that will allow TCP traffic to/from the world that is initiated by my machine?
And a second to allow TCP traffic from the world to hit Apache on port 08?
I have tried a number of rules, but, I must be approaching the idea incorrectly.
I have tried a number of rule configurations with no luck.
It seems like I should be able to add two fairly straight forward lines to get the
desired effect.
Any examples or pointers to good ipchains primers would be appreciated.
Thanks
keep the rudder amid ship and beware the odd typo