wan ip is isp private address(not static), how to configure 1:1

Started by fwar34, July 19, 2023, 09:26:20 AM

Previous topic - Next topic
Hi, My wan ip is isp private address, it's not static, e.g 10.52.105.13. I want to configure 1:1 use this ip to a internal ip(a dmz host 192.168.100.251), in pfsense i can choose 'WAN address' in drop down list in external ip, but in opnsense 1:1 external ip not have this item in drop down list, so i choose signal host and input '10.52.105.13', but when opnsense reboot or reconnect to internet the WAN ip address have changed, so must set new WAN ip address in 1:1 again, but this is stupid. Can anyone tell me how to configure 1:1 in this situation? Excuse me poor english, thanks.

Why do you need 1:1 NAT? Its purpose is to separate traffic from your default WAN IP and you can't do that in your situation, since you only have one (inseparable) public IP.

You sound like you have CGNAT and you're better off with something like cloudflared to direct traffic to your DMZ host.

Bart...

thanks for your reply, I want to fully expose my dmz host to internet, so i configure 1:1 nat on WAN ip address, and add firewall rules to translate wan ip address to dmz host. Because my wan ip address is dynamic and is isp private address, in pfsense i can choose 'WAN address' in 1:1, but opnsense don't have this item, i must input wan address manual.


Which ports/protocols is the DMZ host listening on?

netstat -tulpen is a good way of finding out

Quote from: fwar34 on July 19, 2023, 09:53:44 AM
thanks for your reply, I want to fully expose my dmz host to internet, so i configure 1:1 nat on WAN ip address, and add firewall rules to translate wan ip address to dmz host. Because my wan ip address is dynamic and is isp private address, in pfsense i can choose 'WAN address' in 1:1, but opnsense don't have this item, i must input wan address manual.

Why are you wanting to expose your entire DMZ host?  What does that accomplish that individual port forwarding doesn't?

Exposing an entire host massively increases the surface area attackers have to use against you.  There's almost never a good reason to do so.

I depoly a blockchain machine in dmz host, but my wan ip address is isp private, upup plugin can't use in private ip, so i want to expose whole dmz host

What is a blockchain machine?  Are you mining, or something else?

If you're already behind CGNAT, what are you expecting to happen by creating this DMZ host?  It still won't be internet accessible.