NAT & Gateway on different machines
-
Hi,
we're using 2 pfSense on different machines with 2 different IP. We're running servers (Web, Mail, etc…)which have 1 Gateway stored. Not every server are using same gateway (it depends on physical connection).
Now I have a server use pfSense01 as Gateway but and I setup NAT on pfSense02. But it's not accessible from outside (IP of psSense02).What should I do in that case?
cu Floh -
If you want to use a different router for inbound traffic than the default gateway of the servers you need to do some kind of source NATing.
You can do this by:
Firewall –> NAT --> outbound
Enable manual rule generation.
Create a new rule with:
Interface: LAN
Source: any
Destination: server_you_want_to_access. -
If you want to use a different router for inbound traffic than the default gateway of the servers you need to do some kind of source NATing.
You can do this by:
Firewall –> NAT --> outboundDo you mean as following?
Internet -> pfSense02 -> pfSense01 -> internal Servercu Floh
-
I dont follow you.
From your previous description your setup looks like this:Internet –--------- pfSense1----\
\ |---- Server_x
Switch----|----- Server_y
/ |----- Server_z
Internet ----------- pfSense2-----/If Server_x has as default gateway pfSense1 and you want to connect to Server_x per NAT via pfSense2, the you need to setup source NATing as i described before.
-
Jupp, you understand right. So I have to do some rules as you suggested on pfSense02 but no change on pfSense01 is needed, right?
-
yes.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy