* Non host resident proxies
@ 2003-01-17 17:50 Magnus Sundberg
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Sundberg @ 2003-01-17 17:50 UTC (permalink / raw)
To: netfilter
Dear sirs,
I have a standard firewall, almost minimal linux
installation+netfilter+3 interfaces (internal, external and perimeter)
I want to redirect all POP3 requests back to my main server. POP3
requests from the main server is forwarded to the internet.
Something like this.
------------ -------------------
! ! ! !
! Client !--------->! router/firewall !
! ! ----! !
------------ ! ->! - - - - - - - - ! ---->(Internet)
! ! ! !
! ! -------------------
------------- ! !
! !<----- !
! Server !--------
! !
-------------
I can scan all pop3 traffic for viruses by this method.
I believe this setup would be correct for proxying other protocols to.
I would preferably be interested in also being able to redirect the
protocol port too.
Is it possible to do this with the current netfilter release?
I am aware that there is good chance of unwanted loops with this setup
regards,
Magnus Sundberg
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Non host resident proxies
[not found] <FD8F124A387AD6119F7900A0D218B321019AED@hslex01.hslbz.local>
@ 2003-01-21 12:14 ` Magnus Sundberg
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Sundberg @ 2003-01-21 12:14 UTC (permalink / raw)
To: Rob Sterenborg, netfilter
Hi,
Thanks for your answer.
It will not work, since NAT rewrites the destination header, which is
used by the pop3vscan proxy to find out the actual host.
But I found out later
iptaples -t mangling -p tcp --dport 110 -s ! <ip_host> -j ROUTE --gw
<ip_host>
According to Cédric, the author of the ROUTE target, you need to use CVS
for p-o-m and source, since there are some compatibility issues between
the new patch-o-matic-20030107 with the old iptables-1.2.7a.
/Magnus
Rob Sterenborg wrote:
>>I want to redirect all POP3 requests back to my main server. POP3
>>requests from the main server is forwarded to the internet.
>>Something like this.
>>
>>------------ -------------------
>>! ! ! !
>>! Client !--------->! router/firewall !
>>! ! ----! !
>>------------ ! ->! - - - - - - - - ! ---->(Internet)
>> ! ! ! !
>> ! ! -------------------
>>------------- ! !
>>! !<----- !
>>! Server !--------
>>! !
>>-------------
>>
>>I can scan all pop3 traffic for viruses by this method.
>>I believe this setup would be correct for proxying other
>>protocols to. I would preferably be interested in also being
>>able to redirect the
>>protocol port too.
>>Is it possible to do this with the current netfilter release?
>>I am aware that there is good chance of unwanted loops with this setup
>
>
> You mean to just DNAT port 110/tcp (pop3) to <ip_server> ?
>
> I assume :
> eth0 : inet
> eth1 : lan
> eth2 : dmz
>
> iptables -i eth0 [-o eth2] -d <ip_server> -p tcp --dport 110 -j ACCEPT
> itables -t nat -A PREROUTING -i eth0 -p tcp --dport 110 --to-destination
> <ip_server>
>
>
> Rob
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-21 12:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <FD8F124A387AD6119F7900A0D218B321019AED@hslex01.hslbz.local>
2003-01-21 12:14 ` Non host resident proxies Magnus Sundberg
2003-01-17 17:50 Magnus Sundberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.