jcrodriguez-dis / vpl-jail-system

Execution/jail server for VPL
GNU General Public License v3.0
21 stars 21 forks source link

Is the outcoming request denied? #32

Closed alphonse92 closed 1 year ago

alphonse92 commented 4 years ago

Im playing with the jail. As a teacher i trying to run some tests. For example:

Screen Shot 2019-11-11 at 9 21 07 PM

as you can see, those host cant be resolved.

But if inside the jail host i can reach those urls:

Screen Shot 2019-11-11 at 9 30 03 PM

Why ? How can i resolve specific domains?

alphonse92 commented 4 years ago

btw, i solved.

Just run:

echo '172.217.172.4 www.google.com' >>  /jail/etc/host

Obviously, I changed the ip and the hostname as i was needing. I will close this issue, but someone could need this information.

jcrodriguez-dis commented 4 years ago

Notice the FIREWALL jail parameter Use value 1 or 0

FIREWALL=0|1|2|3|4

0: No firewall

1: VPL service+DNS+internet access

2: VPL service+DNS+Limit Internet to port 80 (super user unlimited)

3: VPL service+No external access (super user unlimited)

4: VPL service+No external access

Note: In level 4 stop vpl-jail-system service to update/upgrade the system

Note: Don not use in CentOS

default level 0

FIREWALL=0

alphonse92 commented 4 years ago

Yeah the firewall is disable right now. (By default). The is a docker issue mostly.