J_Worth Posted February 26, 2014 Posted February 26, 2014 Hello everyone, I am currently trialling pfSense on our school network, however, I have an issue that I can't get my head around and was just wondering if anyone out there has any ideas. Here is the setup: 10.10.10.0/21 ---> pfSense ---> 10.208.208.0/21 ---> LEA Router I am currently unable to access the internet on the 10.10.10.0/21 network as I need to have NAT implemented due to the fact that the LEA Router does not know that the 10.10.10.0/21 network exists and we can't change the LEA Router to have a route to 10.10.10.0/21. Therefore, how would I setup NAT on the pfSense box so that everything behind it (in 10.10.10.0/21) has access to the internet? Many thanks. J.Worth
Sibrows Posted February 26, 2014 Posted February 26, 2014 Have you configured the firewall rules to use the right gateway?
J_Worth Posted February 26, 2014 Author Posted February 26, 2014 (edited) Sorry, my initial post was not that clear - I haven't yet managed to implement NAT as I am not sure how to go about doing this. I would like to have the following: WAN interface: 10.208.208.20 WAN Virtual IP: 10.208.208.25 - This will be a web server running on the 10.10.10.0 network and LEA have opened a port to 10.208.208.25 (so requests for 10.208.208.25 will need to be forwarded to 10.10.10.10 WAN Virtual IP: 10.208.208.100 - This will be used for NAT Have you configured the firewall rules to use the right gateway? So after I have configured I can then do an "any to any" rule to allow the 10.10.10.0/21 network internet access using NAT? Edited February 26, 2014 by J_Worth
Sibrows Posted February 26, 2014 Posted February 26, 2014 Ok so how far have you got with the configuration thus far? Have you defined you Interfaces? WAN Virtual IP: 10.208.208.25 - This will be a web server running on the 10.10.10.0 network and LEA have opened a port to 10.208.208.25 (so requests for 10.208.208.25 will need to be forwarded to 10.10.10.10 WAN Virtual IP: 10.208.208.100 - This will be used for NAT Both of these can be created as 'Virtual IPs' within the 'Firewall' section and then under the 'NAT: Port Forward' options you can define the Destination address (10.208.208.25) to point to the NAT IP 10.10.10.10 if you leave the box ticked pfsense will also put in the correct firewall rules. So after I have configured I can then do an "any to any" rule to allow the 10.10.10.0/21 network internet access using NAT? In short - Yes. We're multiple WAN connections here so I'm not 100% sure if you would need to define the gateway I'm just aware that I had to. I'm not sure that I understand what your trying to achieve
J_Worth Posted February 26, 2014 Author Posted February 26, 2014 Ok so how far have you got with the configuration thus far? Have you defined you Interfaces? I have defined the interfaces and have set one of them as the LAN interface and the other as the WAN. LAN interface: 10.10.10.1 WAN interface: 10.208.208.20 I'm not sure what kind of NAT I need to allow all the hosts in the 10.10.10.0/21 network access to the internet. Is that Outbound NAT which is automatically done as default. I'm not sure that I understand what your trying to achieve The LEA have given us a range of 10.208.208.0/21 and this is not big enough for us, as we want to VLAN and implement BYOD at some point. So we have decided to put a pfSense box in place so that we can use whatever range we want without it having any effect on the LEA. We want it so that, we have a huge amount of IP addresses available for us to use and everything going out to the internet is NAT'd through the pfSense box. And NAT is required as we have no routes to the 10.10.10.0/21 network on the LEA managed router. Secondly, we currently have two internet facing servers and the LEA has given us a public IP address that forwards to: 10.208.208.50 and 10.208.208.51 respectively. We want to bring these in behind the pfSense box so anything coming into 10.208.208.50, gets forwarded to any IP address the other side of the pfSense. I have only specified one VLAN (10.10.10.0/21) as the example. I hope that makes things a little bit clearer.
Sibrows Posted February 26, 2014 Posted February 26, 2014 I'm not sure that I understand what your trying to achieve Sorry I meant to remove that The LEA have given us a range of 10.208.208.0/21 and this is not big enough for us' date=' as we want to VLAN and implement BYOD at some point. So we have decided to put a pfSense box in place so that we can use whatever range we want without it having any effect on the LEA. We want it so that, we have a huge amount of IP addresses available for us to use and everything going out to the internet is NAT'd through the pfSense box. And NAT is required as we have no routes to the 10.10.10.0/21 network on the LEA managed router.[/quote'] That was originally our requirements we now also use the captive portal features combined with a separate SSID within the wireless system so staff can connect their phones etc to the wifi. I'm not sure what kind of NAT I need to allow all the hosts in the 10.10.10.0/21 network access to the internet. Is that Outbound NAT which is automatically done as default. All I need to do to get this working was a firewall rule (on the internal interface) allowing all traffic (initially) to pass through the firewall using a specified gateway. (as I explained earlier we are using multiple WAN connections).
J_Worth Posted February 26, 2014 Author Posted February 26, 2014 No worries. Thank you for your help anyway, I'm sure I'll get it sorted. It'll be something simple and I'm making it sound over complicated (it's not!).
ChrisH Posted February 26, 2014 Posted February 26, 2014 You want Firewall > Nat > Outbound to set up NAT and to publish your servers you use 1:1 NAT and then allow the ports on the WAN interface of the firewall.
J_Worth Posted February 26, 2014 Author Posted February 26, 2014 I found the issue - I stuffed up the Default Gateway IP address on my test client.
J_Worth Posted February 26, 2014 Author Posted February 26, 2014 You want Firewall > Nat > Outbound to set up NAT and to publish your servers you use 1:1 NAT and then allow the ports on the WAN interface of the firewall. Thanks. That's cleared all my questions up.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now