Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
No internet connection with IP Public as WAN
« previous
next »
Print
Pages: [
1
]
Author
Topic: No internet connection with IP Public as WAN (Read 327 times)
Juicestyle
Newbie
Posts: 10
Karma: 0
No internet connection with IP Public as WAN
«
on:
September 25, 2024, 11:54:08 am »
Hello,
I'm trying to configure my WAN interface with a public IP address.
I've successfully configured my public IP on my WAN interface and set up my gateway.
However, when I connect to the LAN, I can't get out.
Do I need to configure SNAT?
Have a gode day
«
Last Edit: September 25, 2024, 11:55:44 am by Juicestyle
»
Logged
Seimus
Hero Member
Posts: 596
Karma: 58
Re: No internet connection with IP Public as WAN
«
Reply #1 on:
September 25, 2024, 12:01:15 pm »
Yes you need Outbound NAT.
When you have automatic or Hybrid NAT rules following is the behavior:
A. When you use DHCP on your WAN, those NAT rules are created automatically.
B. When you set a Static IP on your WAN, but dont specify a GW on the Interface the NAT is not automatically created
C. When you set Static IP on your WAN, and specify GW on the Interface the NAT is automatically created.
https://docs.opnsense.org/manual/interfaces.html#assignments
Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Crucial 16G 4800 DDR5 | S 980 500G -
PROD
Juicestyle
Newbie
Posts: 10
Karma: 0
Re: No internet connection with IP Public as WAN
«
Reply #2 on:
September 25, 2024, 12:10:07 pm »
OK, I create outbout rule:
Logged
Seimus
Hero Member
Posts: 596
Karma: 58
Re: No internet connection with IP Public as WAN
«
Reply #3 on:
September 25, 2024, 12:15:00 pm »
From that picture, you already had auto rules created for all your LAN interfaces. So NATing should work from LAN > WAN. You dont need a manual NAT rule in this case and also the one you created is missconfigured.
Try to do some further checks from a LAN device like:
Code:
[Select]
nslookup google.com
Code:
[Select]
ping google.com
Code:
[Select]
tracert google.com
- Windows device
Code:
[Select]
traceroute google.com
- Linux device
Also how are your Rules set on the LAN e.g network from which is not working for you?
Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Crucial 16G 4800 DDR5 | S 980 500G -
PROD
Juicestyle
Newbie
Posts: 10
Karma: 0
Re: No internet connection with IP Public as WAN
«
Reply #4 on:
September 25, 2024, 12:28:02 pm »
Ping to google.fr:
Error during name resolution
Ping 9.9.9.9:
PING 9.9.9.9 (9.9.9.9) 56(84) bytes of data.
--- 9.9.9.9 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2072ms
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
No internet connection with IP Public as WAN