Advertisement
Guest User

config.gateway.json exempting group from DNAT

a guest
Jan 19th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. {
  2. "service": {
  3. "nat": {
  4. "rule": {
  5. "1": {
  6. "description": "Redirect Non-Exempt Outbound DNS to USG",
  7. "destination": {
  8. "port": "53",
  9. "address": "!YOUR_PIHOLE_IP"
  10. },
  11. "source": {
  12. "group": {
  13. "address-group": "!GROUP_YOUR_PIHOLE_IP_AND_CHROMEBOOK"
  14. }
  15. },
  16. "inside-address": {
  17. "address": "YOUR_PIHOLE_IP"
  18. },
  19. "inbound-interface": "eth1",
  20. "protocol": "tcp_udp",
  21. "type": "destination",
  22. "log": "enable"
  23. },
  24. "5002": {
  25. "description": "Masquerade Inbound DNS for Pihole",
  26. "destination": {
  27. "address": "YOUR_PIHOLE_IP",
  28. "port": "53"
  29. },
  30. "outbound-interface": "eth1",
  31. "protocol": "tcp_udp",
  32. "type": "masquerade"
  33. }
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement