Giter VIP home page Giter VIP logo

Comments (7)

brainfucksec avatar brainfucksec commented on June 15, 2024

Hi @solisinvictum
To allow internal network connections you must enter the IP address or the range of IP addresses in the iptables rules using the ACCEPT value, you need to modify the iptables.rules file, e.g.:

iptables -A INPUT -s 192.168.0.178 -j ACCEPT

When 192.168.0.178 is the IP address you want to whitelist, see: https://man.archlinux.org/man/iptables.8

This may have security implications, see: https://security.stackexchange.com/questions/189474/why-is-dhcp-considered-insecure

from archtorify.

solisinvictum avatar solisinvictum commented on June 15, 2024

Sry for the late answer!

Thanks for the Info. I give it a look.

Could this be implemented as a option? Simply to look in what Range the Machine archtorify runs on is and then to whitelist this? --allow-lan for example or something.

from archtorify.

brainfucksec avatar brainfucksec commented on June 15, 2024

Thank you for the advice, I will consider this change.

from archtorify.

solisinvictum avatar solisinvictum commented on June 15, 2024

Thanks,

that would be really great! :)

from archtorify.

solisinvictum avatar solisinvictum commented on June 15, 2024

Im doing something wrong.

I added

-A INPUT -s 192.168.5.0/24 -j ACCEPT

on the last position (before commit) into the file /usr/share/archtorify/data/iptables.rules

and iptables -L shows thats its active. But still cant access this machine from other machine in same lan.

-A INPUT -s 192.168.5.205 -j ACCEPT

didnt worked too. First thought i need to create OUTPUT ones too, but that didnt helped either.

from archtorify.

brainfucksec avatar brainfucksec commented on June 15, 2024

Use the -A and OUTPUT with -d (destination) parameters, this instruction must be inserted after the last instruction of this chain (after the line 29):

--ipv4 -A OUTPUT -d 192.168.5.0/24 -j ACCEPT

I suggest you to understand first how iptables works, see:

https://man.archlinux.org/man/iptables.8

https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands

from archtorify.

solisinvictum avatar solisinvictum commented on June 15, 2024

Thanks for the hint.

But its still not working. I even added INPUT Rules accordingly the manuals you delivered:

image

image

I give it further investigation.

from archtorify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.