OPNsense Forum

English Forums => General Discussion => Topic started by: interkrome on June 09, 2016, 09:28:58 am

Title: Set Static IP from ISP to LAN client
Post by: interkrome on June 09, 2016, 09:28:58 am
Hi everyone!

I really need to know how can i set the remaining ip that i have from my ISP to my printer & CCTV. I already used one for the router (1.32.99.n1), so i want to set 1.32.99.n2 for my CCTV and 1.32.99.n3 for my printer. So whenever i'm not at home, i still can view the CCTV or print some document.

Can anyone lead me on how to set up this?
Title: Re: Set Static IP from ISP to LAN client
Post by: bartjsmit on June 09, 2016, 12:45:25 pm
Go to Firewall, NAT, one to one. Interface WAN, External IP subnet 1.32.99.n2. Set the internal IP to your CCTV with a /32.

Go to Firewall, Rules, WAN, add a rule for the protocol, port and internal IP destination for your CCTV application.

You can most likely do this with an IP alias as well, but 1-1 NAT has the advantage that the return connections have a consistent source IP, which can matter for media connections like CCTV.

Bart...
Title: Re: Set Static IP from ISP to LAN client
Post by: interkrome on November 24, 2016, 05:07:56 am
Thanks Bart!!

I managed to view the CCTV from my home using port forwarding with 1.32.99.n1:XXXX

What makes me wonder right now, how can i know the static ip given by my provider is up ? They gave me 1.32.99.n1/29. I only used one, the rest still free.

I tried with the advice but failed.
Title: Re: Set Static IP from ISP to LAN client
Post by: bartjsmit on November 24, 2016, 11:20:32 am
All the IP's in your WAN subnet are trunked through the same PPP tunnel to your provider. It's up to you if the IP is up in the sense of responding to traffic.

Bart...