Comments (1)
I had the same problem also coming from UFW analysis.
It seem to come from the double quoting of code in line 71
print indent target_node_name " [class=reject, label=\"" target_label "\"]"
must be replaced by:
print indent target_node_name " [class=reject, label='" target_label "']"
so I replaced all \"
by '
diff (lines 183,189c183,189 are more fine-tuning):
71c71
< print indent name " [class=rule, label='" label "']"
---
> print indent name " [class=rule, label=\"" label "\"]"
157c157
< print indent target_node_name " [class=reject, label='" target_label "']"
---
> print indent target_node_name " [class=reject, label=\"" target_label "\"]"
163c163
< print indent target_node_name " [class=target, class='" target_label "', label='" target_label "']"
---
> print indent target_node_name " [class=target, class=\"" target_label "\", label=\"" target_label "\"]"
183,189c183,189
< print indent "class reject [color = 'red', label='REJECT']"
< print indent "class reject_line [color = 'red']"
< print indent "class drop [color = 'red', label='DROP']"
< print indent "class return [color = '#1ab3ff', label='RETURN']"
< print indent "class return_line [color = 'blue']"
< print indent "class accept [color = 'lightgreen', label='ACCEPT']"
< print indent "class accept_line [color = 'green']"
---
> print indent "class reject [color = \"red\", label=\"REJECT\"]"
> print indent "class reject_line [color = \"red\"]"
> print indent "class drop [color = \"red\", label=\"DROP\"]"
> print indent "class return [color = \"#1ab3ff\", label=\"RETURN\"]"
> print indent "class return_line [color = \"blue\"]"
> print indent "class accept [color = \"lightgreen\", label=\"ACCEPT\"]"
> print indent "class accept_line [color = \"green\"]"
199c199
< style="shape=ellipse, style=dotted, linecolor='#444', textcolor='#444'"
---
> style="shape=ellipse, style=dotted, linecolor=\"#444\", textcolor=\"#444\""
from iptable_vis.
Related Issues (12)
- Avoid creation of empty groups
- Quotation marks in rules result in broken diag code. HOT 3
- render LOG message properly
- Dashed lines for never used rules
- Scale width of line with the number of matches
- Support `iptables-save` output
- Use iptables -S
- ERROR: got unexpected token: <EOF> HOT 2
- Blockdiag doesn't seem available. HOT 1
- awk: iptables-vis.awk: line 211: function gensub never defined HOT 2
- Being able to pass traffic through the wan in the table marked with a different source IP address. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iptable_vis.