my linux server is connected via PPP0 and im using internal IP's of
192.168.0.0/24. my server also serve http request (mydomain.com). now, how
do i use iptables and squid for transparent proxy (force clients to use
proxy) ?

i have tried these several rules: problem with these rules is that my own
domain could not access(internally and externally).


1. iptables -t nat -A PREROUTING -s 192.168.0.0/24 -i eth0 -p tcp --dport
   80 -j DNAT --to 192.168.0.1:8888

2. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
   --to-port 8888

3. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


what/which would be the right rule/s for my setup ?


Thanks,
dwen


> > is anybody already deploying their firewalls based on netfilter/iptables?
> > anyone planning to migrate from ipchains to netfilter?
> >
> > any compelling reasons to do so, aside from stateful inspection?
> > any compelling reason NOT to do so?
> >
> > anyone want to share their horror stories on this?
> >
> > -marlon
> > _
> > Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> > To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> >
> > To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
>[EMAIL PROTECTED]
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
>[EMAIL PROTECTED]
>

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to