[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ipnat & rdr?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: ipnat & rdr?
- From: William Boettcher <wcboettcher_(_at_)_voyager_(_dot_)_net>
- Date: Wed, 15 Aug 2001 16:40:34 -0500
Hello,
Everything with my OBSD 2.7 box is going good, with the exception of
redirecting incoming mail on port 25 to my mail server. below is what I see
when I type ipnat -l. It looks like the OBSD box is trying to redirect the
mail to the mail server, but the mail server is not willing to receive the
mail from what I see below. Is this correct? Or did I make a mistake in my
ipnat & ipf rules? (Yes the public to private ip's are right, it's a really
screwy network that will get ip's changed when time's available)
List of active MAP/Redirect filters:
rdr ep0 192.168.1.2/32 port 25 -> 164.5.5.83 port 25 tcp
map ep0 164.5.1.0/24 -> 192.168.1.2/32 portmap tcp/udp 20000:65000
map ep0 164.5.1.0/24 -> 192.168.1.2/32
map ep0 164.5.5.0/24 -> 192.168.1.2/32 portmap tcp/udp 30000:65000
map ep0 164.5.5.0/24 -> 192.168.1.2/32
List of active sessions:
RDR 164.5.5.83 25 <- -> 192.168.1.2 25 [149.174.40.135 56534]
RDR 164.5.5.83 25 <- -> 192.168.1.2 25 [171.68.202.251 40081]
MAP 164.5.5.83 19138 <- -> 192.168.1.2 30286 [216.47.224.68 53]
MAP 164.5.5.83 19137 <- -> 192.168.1.2 30285 [216.47.224.68 53]
MAP 164.5.5.83 19135 <- -> 192.168.1.2 30284 [216.47.224.68 53]
MAP 164.5.5.83 19134 <- -> 192.168.1.2 30283 [216.47.224.68 53]
MAP 164.5.5.83 19118 <- -> 192.168.1.2 30282 [216.47.224.68 53]
MAP 164.5.5.83 19117 <- -> 192.168.1.2 30281 [216.47.224.68 53]
MAP 164.5.5.83 1047 <- -> 192.168.1.2 30000 [192.168.5.95 41508]
# $OpenBSD: ipf.rules,v 1.6 1997/11/04 08:39:32 deraadt Exp $
pass out quick on lo0
pass in quick on lo0
pass in quick on ep1
pass out quick on ep1
block return-rst in log quick proto tcp from any to any port = 23
block return-rst in log quick proto tcp from any to any port = 21
block return-rst in log quick proto tcp from any to any port = 19
pass in log quick on ep0 proto tcp from any port = 80 to 164.5.1.0/24 port =
80 flags S keep state
pass in quick on ep0 proto tcp from 192.168.1.0/32 port = 25 to 164.5.5.83
port = 25
pass in quick on ep0 proto icmp from any to any icmp-type 0
pass in quick on ep0 proto icmp from any to any icmp-type 11
block in log quick on ep0 proto icmp from any to any
block in from any to any
pass out quick on ep0 proto tcp from any to any flags S keep state
pass out quick on ep0 proto icmp from any to any keep state
pass out quick on ep0 proto udp from any to any keep state
pass out from any to any
# $OpenBSD: ipnat.rules,v 1.2 1999/05/08 16:33:10 jason Exp $
rdr ep0 ep0/32 port 25 -> 164.5.5.83 port smtp
map ep0 164.5.1.0/24 -> ep0/32 portmap tcp/udp 20000:65000
map ep0 164.5.1.0/24 -> ep0/32
map ep0 164.5.5.0/24 -> ep0/32 portmap tcp/udp 30000:65000
map ep0 164.5.5.0/24 -> ep0/32
thanks in advance,
Will
wcboettcherNOSPAM_(_at_)_voyager_dot_net
Visit your host, monkey.org