This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MySQL 3306 172.16.1.6:3306 | |
OpenWRT 7000 172.16.1.7:80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### | |
# Tunnel Broker Update | |
##### | |
:global prevIP | |
:local inetIface "[PPPoE Interface Name]" | |
:local tunnerlbroker "[Tunnel broker URL]" | |
:local tunnelIface "[Tunnel 6to4 Internal Name]" | |
:local rejectIP 10.0.0/8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function displayTableHtml(){for(var e="",t="",n=0;n<all_wan_info.wan.length;n++){var i=n+1,a=all_wan_info.wan[n],l=a.wan_index+"_"+a.wan_session_index+"_"+a.iporppp+"_"+a.Name;t+='<tr id="outtable_'+n+'" style="cursor: pointer;" onclick="Showthisinfo(this.id)">',t+='<td align="center">'+i+"</td>",t+='<td align="center">'+a.Name+"</td>",t+='<td align="center">'+a.p8021+"/"+a.vlanid+"</td>","1"==a.IPMode?e="IPv4":"2"==a.IPMode?e="IPv6":"3"==a.IPMode&&(e="IPv4&IPv6"),t+='<td align="center">'+e+"</td>",t+='<td align="center"><input type="checkbox" class="delselwan" value="'+l+'"></td>',t+="</tr>"}$("#internet_list").html(t)}function setBridge(){setTimeout(()=>{$("#WanConnectMode_select").append('<option value="bridge">Bridge</option>')},1e3)}displayTableHtml(),$("td").click(()=>{setBridge()}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Login to fiberhome modem | |
// Paste this script inside browser console | |
$.ajax({ | |
url: '/cgi-bin/ajax?ajaxmethod=get_allwan_info', | |
success: (data)=>{ | |
data = JSON.parse(data) | |
data.wan.forEach(v => { | |
if(v.AddressingType == 'PPPoE'){ | |
console.log("Username: "+ v.Username) |