unifios-utilities
unifios-utilities copied to clipboard
Help needed: Adding pseudo-ethernet interface and masquerading
Is it in any way possible to use the on.boot-script for adding a pseudo-ethernet interface for ethX with masquerading as described here? https://owennelson.co.uk/accessing-a-modem-through-a-ubiquiti-usg/
no one? :(
I access my att router using static routes.
I access my att router using static routes.
Could you please tell me about how to do it?
I'm also trying to find a way to port this config so I can access my ONT's web GUI. Any ideas?
{
"interfaces": {
"pseudo-ethernet": {
"peth0": {
"address": [
"192.168.100.2/24"
],
"description": "Access to ONT",
"link": "eth0"
}
}
},
"service": {
"nat": {
"rule": {
"5000": {
"description": "Access to ONT",
"destination": {
"address": "192.168.100.1"
},
"outbound-interface": "peth0",
"type": "masquerade"
}
}
}
}
}
Hi! I found a solutioin for this. First, follow the instructions here Add the IP on the WAN port. After that, set a static route in your upstream device (ONT,modem,router etc.) like Destionation: Your subnet (192.168.0.0/16) Metric:1 Next Hop: The static IP you added before