Link to home
Start Free TrialLog in
Avatar of alonig1
alonig1

asked on

different Public IP to every VLAN

I got a range of IP's from my ISP.

How do I set a different PUBLIC IP , for each VLAN?

I have ubiquiti router and switches.
Avatar of Darrell Porter
Darrell Porter
Flag of United States of America image

        rule 5000 {
            description "SNAT VLAN1"
            outbound-interface eth0
            outside-address {
                address wan.ip.add.r1
            }
            source {
                address [VLAN_1_subnet]
            }
            type source
        }
        rule 5001 {
            outbound-interface eth0
            type masquerade
        }
    }

Open in new window

Do essentially this for each VLAN and/or public IP address in the assigned IP block.
Avatar of alonig1
alonig1

ASKER

Do you know how ubinquiti works ?

IT's all GUI.

I need the GUI way!
IT's all GUI.
Wrong. Ubiquiti has GUI *and* CLI. Darrell gave you a correct answer, even if you don't like the fact it's using CLI.

I need the GUI way!
https://help.ubnt.com/hc/en-us/articles/204976494-EdgeRouter-Source-NAT-and-Masquerade
In your case, it sounds like you're interesting in the Masquerading. Follow the web UI directions for that.
Avatar of alonig1

ASKER

I'm not using CLI , im using GUI.

Also I don't have the edge max router I have Ubiquiti Unifi Security Gateway (USG)
Avatar of alonig1

ASKER

this is what I can see (picture)User generated image
Avatar of alonig1

ASKER

Darrell Porter ,

How do I get to the CLI command prompt?
you can access the cli command prompt over ssh. as far as i remember, you are required to press a button on the router to allow access.

you may have a look at the "remote access" menu in your screenshot as well.

--

the settings are definitely available in the gui. the proper location would be "NAT" or possibly "masquerade"

they should most likely be directly available under "firewall" may be you need to dive into the "networks" submenu
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.