I have implemented a proxy server using squid and safesquid , but i wanted to implement a transparent proxy so that i can force all the user to pass through the proxy. when i issue this command iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
every systems on local ip pass through the server. but if i restart the server i will need to reissue this command again. how do i do this ? i want the command to be executed at startup. please somebody should point me in the right direction.
On 11.0 you can add some custom rules to SuSEfirewall2. It should be similar in 10.2. Here is the section:
## Type: string
#
# 25.)
# Do you want to load customary rules from a file?
#
# This is really an expert option. NO HELP WILL BE GIVEN FOR THIS!
# READ THE EXAMPLE CUSTOMARY FILE AT /etc/sysconfig/scripts/SuSEfirewall2-custom
#
#FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"
FW_CUSTOMRULES=""
Thanks for your suggestion. but can you please tell me how to do this in detail. when i inserted the iptables command directly to varible my network interface did not boot up . please explain how i will do this.