Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
pfSense Forum
pfSense English Support
»
NAT
»
DNAT only for specific IPs
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Home
Help
Search
Login
Register
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: DNAT only for specific IPs (Read 311 times)
0 Members and 1 Guest are viewing this topic.
ktims
Sr. Member
Offline
Posts: 294
DNAT only for specific IPs
«
on:
March 12, 2010, 04:37:23 pm »
I've been having major problems with my ISP's SMTP relays (both of the ISPs have started silently dropping mail that matches some random filter they won't tell me about...) at a couple of offices I manage. What I've done is obtain a VPS to act as a private mail relay for my client. What I'd like to do with pfSense is DNAT just the ISP's SMTP relay servers to my new relay on a different port.
Currently I have a port forward rule redirecting all port 25 traffic to my relay, but I am concerned that an infected client machine with a spam bot would be able to relay any mail it wants since it can connect to any host on port 25 and reach a server that will relay mail for it. Instead, I would like to set up a DNAT rule that looks at both the destination port *and* IP before NATing it to my relay. Is this possible with pfSense?
Logged
danswartz
Hero Member
Offline
Posts: 858
Re: DNAT only for specific IPs
«
Reply #1 on:
March 12, 2010, 04:41:15 pm »
You could, but maybe try this instead (I had the exact same issue as you.) On my vps (linode), I installed a stripped-down postfix smtp server. I set my real mail server behind pfsense to use the vps as a smart relay. To prevent it being used as an open relay, it only accepts authenticated clients, which my real postfix server is. I am not worried about infected bots like you, but if that is a concern, you could set an outbound rule that blocks smtp to anywhere but the vps.
Logged
axonxorz
Newbie
Offline
Posts: 1
Re: DNAT only for specific IPs
«
Reply #2 on:
March 30, 2010, 01:43:00 pm »
My problem is similar,
I need to do DNAT on port 80 to a squid proxy (thereby making it transparent to the end users). But only for a specific IP.
Both the squid server and the 'end users' are on the LAN subnet.
Is this possible? In Linux iptables you would just to DNAT.....
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Administrative
-----------------------------
=> Forum rules
=> Messages from the pfSense Team
=> Feedback
-----------------------------
pfSense English Support
-----------------------------
=> Installation and Upgrades
=> General Questions
=> 2.0-BETA Snapshot Feedback and Problems
=> Post a bounty
===> Completed Bounties
===> Expired/Withdrawn Bounties
=> Hardware
=> Firewalling
=> NAT
=> CARP/VIPs
=> Routing and Multi WAN
=> Traffic Shaping
=> DHCP and DNS
=> IPsec
=> PPTP
=> PPPoE Server
=> Captive Portal
=> webGUI
=> Wireless
=> SNMP
=> DNS Server testing area
=> Packages
=> Virtualization installations and techniques
=> OpenSSH
=> OpenVPN
=> Gaming
-----------------------------
Development/Documentation
-----------------------------
=> Documentation
=> Development
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
International Support
-----------------------------
=> Indonesian
=> Deutsch
=> Español
=> Français
=> Italiano
=> Russian
=> Nederlands
=> Norwegian
=> Portuguese
=> Polish
=> Romanian
=> Swedish
=> Turkish
-----------------------------
Retired
-----------------------------
=> 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
=> 1.2.1-RC Snapshot Feedback and Problems-RETIRED
Loading...