RE: Tracking down the source of proxy problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, Rob,

> > firewall iptables (in port number edited):
> >
> >   *nat
> >   :PREROUTING ACCEPT [0:0]
> >   :POSTROUTING ACCEPT [0:0]
> >   :OUTPUT ACCEPT [0:0]
> >   -A PREROUTING -p tcp --dport ##INPORT## -j DNAT --to
> > 192.168.2.10:5432
> >   -A PREROUTING -p udp --dport ##INPORT## -j DNAT --to
> > 192.168.2.10:5432
> >   -A POSTROUTING -o ppp0 -j MASQUERADE
> >   COMMIT
>
> These are only NAT rules. What about the FORWARD rules ?

Sorry, left them out because I didn't think they were relevant... here they
are (SOME_PORT means that there are similar lines for various ports... but
none are 5432 or related to Postgres, since this proxy machine does not host
the DB):

*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:BLACKLIST - [0:0]
:LOG_ACCEPT - [0:0]
:LOG_DROP - [0:0]
:icmp_packets - [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport ##SOME_PORT## -j LOG_ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -p icmp -j icmp_packets
-A INPUT -j LOG_DROP
-A LOG_ACCEPT -j LOG --log-prefix "[IPTABLES ACCEPT] :
" --log-tcp-options --log-ip-options
-A LOG_ACCEPT -j ACCEPT
-A LOG_DROP -j LOG --log-prefix "[IPTABLES DROP] :
" --log-tcp-options --log-ip-options
-A LOG_DROP -j DROP
COMMIT

Thanks!
Dave




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux