Quote:
Originally posted by tangle
What he is trying to say is this: We are not here to do your work for you. We are nobodies slaves. If you need help with something most on here are glad to help. Help does not mean "do it for you". Plus, if you are making money on this, it would be only right for you to pay someone to do it.
|
I'm extremely sorry for this. Actually I am using the forum for the first time. and i was very frustrated for this problem. Today itself I registered with 5 to 6 Forums and put the same question in similar fashion. Thank you for pointing this to me. And also my english is little weak.
I tried with script below. But it is not working.
iptables -t filter -F
iptables -t nat -F
iptables -t mangle -F
iptables -P FORWARD REJECT
iptables -A FORWARD -s 192.168.1.0/24 -d 0/0 -j ACCEPT
iptables -A FORWARD -s 192.168.1.0/24 -d 192.168.1.0/24 -j REJECT
iptables -A FORWARD -s 127.0.0.1 -d 192.168.1.0/24 -j REJECT
iptables -A FORWARD -s 192.168.1.0/24 -d 127.0.0.1 -j REJECT
iptables -A FORWARD -s 127.0.0.1 -o eth1 -j REJECT
iptables -A FORWARD -i eth1 -d 127.0.0.1 -j REJECT
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 25 -d 192.168.1.8 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j REJECT
iptables -t nat -A POSTROUTING -s 0/0 -o eth0 -j REJECT
iptables -t nat -A POSTROUTING -s 0/0 -o eth0 -j REJECT
I typed above commands line by line. Other details are as follows
eth0=192.168.1.10 local Network
eth1=172.16.1.2 Connected DSL Router
192.168.1.8=Cisco Router Used send/receive mails.
eth0 and eth1 are installed in Fedora Core3. FC3 has qmail, squirrelmail,squid, Samba etc.
On Windows NT, Norton Mail Scanner downloads the Mails via Router (192.168.1.8), and forward it to Linux PC. qmail sends outgoing mail directly from router.
Second NIC (172.16.1.2) is used for Internet sharing via squid.
After using the above rules squid does not start.
Help will be appreciated.
Thank you