Fix documentation, add gitignore
This commit is contained in:
parent
282205f743
commit
99e48b6103
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.iml
|
||||
.idea
|
8
.idea/.gitignore
generated
vendored
8
.idea/.gitignore
generated
vendored
@ -1,8 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/pndpd.iml" filepath="$PROJECT_DIR$/.idea/pndpd.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
9
.idea/pndpd.iml
generated
9
.idea/pndpd.iml
generated
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
20
.idea/remote-targets.xml
generated
20
.idea/remote-targets.xml
generated
@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteTargetsManager">
|
||||
<targets>
|
||||
<target name="WSL - Debian" type="wsl" uuid="c04b0bc9-8ac6-47f9-8b32-9b096370586f">
|
||||
<config>
|
||||
<option name="distributionMsId" value="Debian" />
|
||||
<option name="projectRootOnTarget" value="/mnt/c/Users/Main/AppData/Local/JetBrains/Toolbox/apps/Goland/ch-0/213.5744.269/jbr/bin /pndpd" />
|
||||
</config>
|
||||
<ContributedStateBase type="GoLanguageRuntime">
|
||||
<config>
|
||||
<option name="goPath" value="/home/main/go" />
|
||||
<option name="goRoot" value="/usr/local/go/bin/go" />
|
||||
<option name="goVersion" value="go1.17.5 linux/amd64" />
|
||||
</config>
|
||||
</ContributedStateBase>
|
||||
</target>
|
||||
</targets>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
generated
6
.idea/vcs.xml
generated
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
10
README.md
10
README.md
@ -4,14 +4,14 @@
|
||||
- Respond to all NDP solicitations on an interface
|
||||
- Respond to NDP solicitations for whitelisted addresses on an interface
|
||||
- Proxy NDP between interfaces with an optional whitelist for neighbor solicitations
|
||||
- Optionally automatically determine whitelist based on the IPs assigned to the interfaces
|
||||
- Optionally determine whitelist automatically based on the IPs assigned to the interfaces
|
||||
- Permissions required: root or CAP_NET_RAW
|
||||
|
||||
## Usage
|
||||
````
|
||||
pndpd config <path to file>")
|
||||
pndpd respond <interface> <optional whitelist of CIDRs separated by a semicolon>")
|
||||
pndpd proxy <interface1> <interface2> <optional whitelist of CIDRs separated by a semicolon applied to interface2>")
|
||||
pndpd config <path to file>
|
||||
pndpd respond <interface> <optional whitelist of CIDRs separated by a semicolon>
|
||||
pndpd proxy <interface1> <interface2> <optional whitelist of CIDRs separated by a semicolon applied to interface2>
|
||||
````
|
||||
More options and additional documentation in the example config file (pndpd.conf).
|
||||
|
||||
@ -31,4 +31,4 @@ proxyInstance := pndp.NewProxy(iface1 string, iface2 string, filter []*net.IPNet
|
||||
proxyInstance.Start()
|
||||
proxyInstance.Stop()
|
||||
````
|
||||
Pull request are welcome for any functionality you add.
|
||||
Pull requests are welcome for any functionality you add.
|
||||
|
@ -126,7 +126,7 @@ func (obj *ProxyObj) start() {
|
||||
}
|
||||
|
||||
//Stop a running Proxy instance
|
||||
// Returns false on success
|
||||
// Returns false on error
|
||||
func (obj *ProxyObj) Stop() bool {
|
||||
close(obj.stopChan)
|
||||
fmt.Println("Shutting down proxy instance..")
|
||||
|
@ -30,6 +30,7 @@ responder {
|
||||
|
||||
// Proxy example with autoconfigured whitelist
|
||||
// The whitelist is configured based on the addresses assigned to the interface specified. This works even if the IP addresses change frequently.
|
||||
// The whitelist is applied to iface2
|
||||
proxy {
|
||||
iface1 eth0
|
||||
iface2 eth1
|
||||
|
Loading…
x
Reference in New Issue
Block a user