PFSense implementation help…
-
Holy Mother of God!
Quick pointer request please…
I want to forward say port 1234 on my external to say 5678 on my DMZ how in the name of the big fella upstairs do I do this but so it works??
I`ve tried it in the NAT bit AND i the rules bit and no go...... help.....
I used this info... > http://doc.pfsense.org/index.php/How_can_I_forward_ports_with_pfSense%3F
-
It's quite straight forward really but a little different to IPCop if I remember.
It's pretty much as explained in that doc you linked to.
One thing that through me is that, from a system point of view, the port forwarder is outside the firewall.
This means that your firewall rule has to allow traffic with your DMZ ip is the destination.
Have a look here.Post the settings you've made and we'll see what's up.
Steve
-
I
ve done it as per the instructions I linked to but it don
t work, just times out. and yet oddly enough, if I scan the relevant port from grc.com it does show as open, if I remove/disable the rule it shows as stealth.Settings are as follows:
Interface: WAN
External Address: Any
Protocol TCP/UDP
Ext Port Range: 1234
NAT IP: 192.168.2.x
Local Port 5678Add firewall rule: Checked
As far as I can find, I have it setup correctly but it don`t work
UPDATE
I can`t get Remote desktop thru either ??? -
Ok, so it looks like the firewall rule isn't being added correctly.
What does it list under firewall rules?
Does the firewall log show your incoming forwarded requests being blocked?Steve
Edit: External address should be wan interface address
-
Hi steve, thanks again for your help….
I've tried with the external address set to wan address and set to any, neither seem to work.
something that has just dawned on me though is I'm trying to access some stuff on my DMZ from my LAN but via my external address, something that has and does work thru IPCop, but so far not with PFSense.
All attempts are blocked (little red X's) in the firewall log (I think it says default deny rule, not 100% though) and seem to originate from a 10.x.x.x address. This address scheme is seemingly what my ISP use on the cable side of the modems on their network, it is however not the address of the cable side of my CM, it's a few digits out... I have also removed the block 10/8 address rule but it still doesn't seem to work.
I can hit an FTP server on my DMZ from my LAN and that rule shows up as passed and all the address info looks correct but as sonn as I try to involve the WAN, it spits it's dummy out!
I'm using RDP on it's default port for the moment, just while troubleshooting.
Thanks again for all yor help.
-
Ah.
@BigBadAl:I'm trying to access some stuff on my DMZ from my LAN but via my external address, something that has and does work thru IPCop, but so far not with PFSense.
How exactly are you doing that?
I have run into a similar problem on a number of occasions. For example I used to run a web server in a DMZ at home. I use Dyn DNS and port forwarding so that it's accessible from the internet directly on www.viadyndnsexample.com. That all worked fine but I could not access the web server myself using that url from inside my lan. It's a routing problem, the dyn dns service returns the wan ip of my firewall and the traffic cannot be routed out through the firewall and back in again. Or something like that! :P
Suffice to say that that was true when I used IPCop and still holds for pfSense.Steve
-
I could not access the web server myself using that url from inside my lan. It's a routing problem, the dyn dns service returns the wan ip of my firewall and the traffic cannot be routed out through the firewall and back in again.
I think the problem is more like this: to access a server on a DMZ it is necessary to specify a port forward rule. That rule will typically specify the WAN interface, meaning packets arriving on the WAN interface. If the WAN interface has a public IP address then packets arriving on the LAN interface and destined to that public IP won't arrive on the WAN interface hence the port forwarding rule won't apply.
If the pfSense WAN interface has a private IP, (e.g it is downstream of a modem/router) then similar considerations may well apply to whatever port forwarding has been set up in the router.
Perhaps its possible to setup suitable port forwarding rules on the LAN interface. (I've never tried it.)
-
That sounds like a better explanation. It's not possible to 'arrive' on WAN from the inside?
The work around I used to use was just to add a local dns entry pointing to my web server in DMZ. That's fine but it doesn't allow you to test any port forwarding rules you may have set.
You have to phone a friend or, as I have resorted to in the past, use a dial-up connection to test! ::)Steve
-
OK, it seems that I cannot access my WAN address from my LAN to test port forwarding and such, I also cannot connect to any RDP sessions or my FTP server this way. All blocked with default deny.
A quick switch back to IPCop allows me to do all of this.
Now if I get my laptop online via my phone (It
s fooking slow >:() I can hit my FTP via my WAN but it still times out it
s so slow, I can also see the beginnings of an RDP session firing up but that times out too due to the speed of my phone connection (presumably).Now all of this works when I use IPCop (on my network, not thru phone, that gotta be less than dial-up! I kid you not). And all these attemps show up in PFSenses Firewall logs as blocked.
Hmmm, I`ve even removed all NAT/Rules and re-instated them and it still not working.
:'( :'( :'( :'(
-
OK, it seems that I cannot access my WAN address from my LAN to test port forwarding and such, I also cannot connect to any RDP sessions or my FTP server this way. All blocked with default deny.
Then you haven't setup your firewall rules correctly. Did you setup appropriate port forwarding on LAN? But is this of any real value anyway since you presumably want to test port forwarding from WAN, not port forwarding from LAN? If you provide more details (your relevant firewall log entries, LAN port forwarding rules, interface IP addresses, interface firewall rules) I'll be happy to take a look at them.
Hmmm, I`ve even removed all NAT/Rules and re-instated them and it still not working.
If you put the same rules back it will likely behave the same way.
Testing WAN port forwarding through the LAN interface runs the danger of reporting false positives. For example, if your internet link is down then (even with IPCop) the port forwarding through the LAN interface will likely work but no-one will be able to access your servers from the Internet. I suspect that if you knew enough about IPCop you could even imagine some other circumstances where IPCop might successfully port forward from the LAN interface but not from the Internet.
Now if I get my laptop online via my phone (It
s fooking slow >:() I can hit my FTP via my WAN but it still times out it
s so slow, I can also see the beginnings of an RDP session firing up but that times out too due to the speed of my phone connection (presumably).Sounds like your port forwarding rules are setup appropriately and you have a method of testing WAN interface port forwarding.
What services are you port forwarding? Telnet can be a useful test tool to connect to web server, smtp server (and probably others) which identify themselves and don't require much bandwidth. For example, telnet host 25 will connect to smtp server on host and host will identify itself; if you give command telnet host 80 and type HELO when telnet reports that it is connected you can generally get a response from the web server at host.
-
What's confusing here is that you seem to be reporting that it's working. All as expected.
The port forwarding you have setup is only supposed to do anything from outside your network. That's why I had to use dial-up to test it.
From inside the firewall, on LAN, you can just reach your servers directly via their local IP address. Or if you want to use a url or local name add entries to the hosts file (can you do that on pfSense?).What are you trying to do that isn't happening?
Steve
-
OK, here goes…. ;D
I cannot connect from my LAN to my WAN to test port forwarding and as has already been pointed out, I now know why this won`t work.
Now I also don
t have any device here at all with a good old dial-up modem installed, I have a landline, but no modem, I may find one if I rummage around but that
ll just mean me having to bodge a system together with a modem in and most likely encounter innumerable amounts of other issues along the way (just the way it is for me I think).Also of all my friends/buddies/mates/aquaintances, there are a few I would trust, but they
re also a while behind me in the technical department, and I
m far from "up there"!May have to walk someone thru it on the fone sometime.
Also, I don`t have any mail/web servers, only FTP.
All this and still, while it looks like an FTP session will connect, it doesn`t and the firewall log shows it as being blocked due to deny rule.
Likewise with the RDP, it looks like it
s gonna start, but it doesn
t and firewall log shows it blocked due to deny rule (little red X`s).Now, If while using IPCop I try to FTP into my server using my laptop and phone, It`s slow, but it does get in and I can browse around it.
Still unable to RDP via my phone even with the settings turned right down.
A speedtest.net test via my phone indicates 650ms ping 0.06Mbps down and 0.04Mbps up now if my numbers are right that
s about 60Kbps down and 40Kbps up which is round about Dial-Up speed, God I don
t remember dial-up being that slow when we had it.....Ah well, so much for playing with VPN`s eh!?! ;D
-
60K? I can still remember using my phone for dial up access at 9600bps! :o
I once tried to play counter-strike over it, some what laggy!Anyway now we're getting somewhere.
Just a thought, have you put in a default allow rule for your dmz interface?
Your ftp server will require that to open a return connection.For ftp what ports have you forwarded? Are you using active or passive?
Steve
-
Erm, as far as I know, I have not assigned any default allow rules, aside from not knowing exactly how to do that, would I set that for packets 'arriving' on the WAN interface or do I apply that to the DMZ for stuff going back out?
I
ve also switched back to IPCop for the time being, and I don
t know whether this is in my head or not, but I`m sure regular browsing is quicker thru IPCop than thru PFSense!?!? I dunno!I also get 21.86Mb down and 1.83Mb up with IPCop and 18.34Mb down and 1.83Mb up with PFSense… Maybe that`s the 733Mhz of IPCop vesus the 433Mhz of PFSense!?!?
Could be the time of day, or just a fluke but that`s all beside the point, How do I go about this default allow rule for the DMZ?
Many thanks again
-
If you look at the firewall rules for lan you'll see that, by default, there is a rule that allows all traffic out to any destination.
In pfSense, and I think this differs from IPCop, when you add another interface you have to add a similar manually if you want to allow traffic out. By default everything is blocked. If you haven't added this rule then your servers in DMZ won't be able to send anything to WAN or LAN except in response to packets sent to them.I'm pretty sure this could break ftp.
Steve
-
If that works you'll probably want to then change your firewall rule as you'll then have it setup to allow access from DMZ to LAN, probably not something you want.
For example I have attched my rules on my wifi interface.
I want to allow wireless clients access to internet. To do that I allow access the local dns forwarder. I also allow access to the pfSense gui for my convenience. My last rule allows access to anywhere except the IP alias LOCAL which is 192.168...
Pretty much everything I have taked about earlier in this thread is more eloquently explained here.
Steve