支持大部分主流防火墙
项目地址
例子
client, err := net.Dial("tcp", "localhost:8188")
// Synchronous call
args := ≺otocol.CliRequest{
Device: "juniper-test",
Vendor: "juniper",
Type: "srx",
Version: "6.0",
Address: "192.168.1.252:22",
Auth: protocol.Auth{
Username: "xxx",
Password: "xxx",
},
Commands: []string{"set security address-book global address WS-100.2.2.46_32 wildcard-address 100.2.2.46/255.255.255.255"},
Protocol: "ssh",
Mode: "configure_private",
Timeout: 30, // seconds
}
var reply protocol.CliResponse
c := jsonrpc.NewClient(client)
err = c.Call("CliHandler.Handle", args, &reply)
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于