Skip to content

Commit 0158f87

Browse files
committed
Add examples using underscore for interface names
1 parent b8299cc commit 0158f87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples.go

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ func getExamples() [][]string {
1212
examples = append(examples, []string{` to get Latitude, Longitude use https://www.latlong.net/`, ` `})
1313
examples = append(examples, []string{`allow only for a successful two-factor duo auth for 'testuser'`, `gofwd -f 1.2.3.4:22 -t 192.168.1.1:22 --duo duo.ini:testuser`})
1414
examples = append(examples, []string{`allow only after both Geo IP and Duo are verified`, `gofwd -f 1.2.3.4:22 -t 192.168.1.1:22 --region Texas --duo duo.ini:testuser`})
15+
examples = append(examples, []string{`forward from any interface on port 22, allow RFC1918 to connect`, `gofwd -f 0.0.0.0:22 -t 192.168.1.1:22 -p`})
16+
examples = append(examples, []string{`forward from IP address bounded to eth0, allow RFC1918 to connect`, `gofwd -f _eth0:22 -t 192.168.1.1:22 -p`})
17+
examples = append(examples, []string{`forward from IP address bounded to eno1, allow RFC1918 to connect`, `gofwd -f _eno1:80 -t example.com:80 -p`})
1518

1619
return examples
1720
}

0 commit comments

Comments
 (0)