25
Apr
Posted in PHP mySQL by carlosap |
Hide Intro Text
we usually set the defaults in the relevant XML files for the user to make it easier when they are adding and editing new content. Like you, we often find we’re wanting Hide intro text on by default. So, instead of setting it globally we edit
administrator/components/com_content/content.xml
change line 28 where it says
22
Apr
Posted in Blog Personal by carlosap |
http://www.checkpoint.com/
21
Apr
Posted in Security by carlosap |
We did it, I kept the Untangle logo but add our own logo next to it.
Hold down control and shift and click on the “setup info” tab under config.
This brings up the “secret” panel for rebranding - you can insert your own logo which will replace the logo on the block pages, quarantine, client, etc.
You can also supply a new name, email, etc.
16
Apr
Posted in Blog Personal by carlosap |
http://forums.untangle.com/search.php?searchid=72166
16
Apr
Posted in Security by carlosap |
ethernet eth0 {
disable: false
discard: false
description: "Config Interface"
hw-id: 00:0C:6E:8E:00:00
duplex: "auto"
speed: "auto"
address 192.168.1.1 {
prefix-length: 24
disable: false
}
}
ethernet eth1 {
disable: false
discard: false
description: ""
hw-id: 00:00:E8:70:00:00
duplex: "auto"
speed: "auto"
bridge-group {
bridge: "br0"
}
}
ethernet eth2 {
disable: false
discard: false
description: ""
hw-id: 00:E0:7D:EA:00:00
duplex: "auto"
speed: "auto"
bridge-group {
bridge: "br0"
}
}
The bridge interface is:
bridge br0 {
description: "Bridge"
disable: false
aging: 300
stp: false
priority: 0
forwarding-delay: 15
hello-time: 2
max-age: 20
}
15
Apr
Posted in Windows by carlosap |
Can ping VPN server only but not other resources
Can’t access the internal server when remote client establishes VPN
Can’t access the Internet while using VPN
Can’t access the remote network after unchecking “Use default gateway on Remote Network”
Destination not unreachable
Can’t access the remote network from VPN clients
Can’t ping each other in a Demand Dial VPN
Can my VPN server as a VPN server and also act as a router
Case Study – peer to peer route via VPN connection
Solved: connectivity issue after enabling Windows VPN
Laptop can’t VPN while Desktop can - VPN error 721
Solution for Peer to Peer VPN using the same IP range.
TTL expired in transit and Destination host unreachable
Can ping VPN server only but not other resources
Symptom: after establishing VPN, you can ping and access the VPN server, but not other servers and the network resources.
Cause: 1. incorrect NAT/Firewall settings.
2. ISA/Proxy blocking.
3. Disable IP routing/forwarding.
Can’t access the internal server when remote client establishes VPN
Symptoms: Two offices are connected using a vpn. Both offices run W2K servers, RAS & TS. When office A connects to Office B you can not connect to office A from anywhere except from office B. You can not connect using TS, or a vpn connection. In order to gain access to office A, you have to connect to office B, disconnect the client in RAS, then you can connect to office A.
Resolution: When establishing VPN to the office A, the routing table changes. To fix this issue, disable the “Use default gateway on remote network”" on the VPN client conenction. Or modify the routing table manually.
Can’t access the Internet while using VPN
Symptom: after establishing a VPN connection, you may not be able to access the Internet because the VPN takes over your existing connection and all traffic to use the VPN default gateway on the remote network. The remote network may not allow VPN clients to access the Internet via their gateway.
Resolutions:
1) If you don’t need to access the entire VPN resources, disable the “use default gateway on remote network” option in the properties of the VPN connection.
2) Edit route table manually if you know how to or check routing page on this web site.
3) For the security reason, some firewall/routers like Cisco PIX do not allow access the Internet after establishing the VPN and you cannot modify the routing table. You may setup split-tunnel.
Can’t access the remote network after unchecking “Use default gateway on Remote Network”
Symptom: After following above instruction and uncheck “Use default gateway on Remote Network” on VPN connection, you can’t access to the remote network any more. For example, your LAN network is 192.0.0.0 and default gateway is 192.0.0.1; the VPN is 192.0.1.0 and gateway 192.0.1.1.that is connecting to the remote network 10.0.0.0. After establishing the VPN connection and unchecking “Use default gateway on Remote Network”, your computer use 192.0.0.1 as gateway instead of 192.0.1.1 and can’t find a way to 10.0.0.0 network.
Resolution: you need modify the route table manually or refer to our Routing page on this web. Or check “Use default gateway on Remote Network” on VPN connection.
Can’t access the remote network from VPN clients
Symptoms: Your VPN client can ping/access the server but not other computers in the remote network.
Resolutions: 1) if you have two NICs in the VPN server, you may need to enable IP Routing. To do this, go to the RRAS>the Properties of the server>IP, check IP Routing.
2) Make sure you don’t uncheck Use the remote default gateway on VPN client’s VPN connection.
3) Make sure VPN client’s LAN and the remote LAN are using the different IP range and subnet.
4) Check routing table for troubleshooting.
Can my VPN server as a VPN server and also act as a router
SYMPTOMS: If you enable VPN on a server, the RRAS will accept incoming VPN connections only and secures the RRAS by enabling filters that only accept PPTP or L2TP traffic. Then network traffic over the VPN connections and the internal LAN connection are normal but the RRAS will not forward packets over the interface except PPTP or L2TP traffic.
RESOLUTION: If you want your server to be a VPN server and also act as a router, you should select Manually configured server from above options and configure the RRAS as a router.
Connectivity issue after enabling VPN in multihomed server
Symptoms: after you enable VPN on a server as a router or with two or more NICs, you may experience some issues. 1) the internal computers can’t access the Internet; 2) outside VPN clients can’t access the VPN server; 3) can’t access the server using TS and VNC form the internal or outside.
Causes: for the security reason, the RRAS modify the routing table and enable incoming VPN connections only so that no other forward packets over the interface except PPTP or L2TP traffic. For consultants, refer to case 090804RL.
TTL expired in transit and Destination host unreachable
Symptoms: After enabling VPN on a Windows 2000 server you may have these issues: 1. From the server, you receive “Destination host unreachable” when ping outside IP.
2. You receive Time out or “Reply from x.x.x.x: TTL expired in transit” when ping the server from outside.
Cause: Outside NIC Filter is enabled.
13
Apr
Posted in CentOS by carlosap |
Screen
Para usar el lftp en consola lo 1º de todo es screen. Mítico.
Me va a permitir crear un terminal virtual en la consola, al que podré entrar y salir a placer.
De esta manera dejaré el lftp corriendo en mi servidor, pero lo manejaré desde mi pc.
Si no usase screen, al cerrar la sesión en el pc se cerraría el lftp del servidor (jodiendome vivo ¬ ¬)
Por supuesto no me voy a andar con zarandajas (¿para que?) y voy a usar el screen a lo natural.
Simplemente meto screen -U, y punto.
¿Que me quiero salir?: ctrl+a, d
¿Que quiero volver?: Como solo tengo un screen me basta con screen -R
Luego ya toca abrir, manejar, y encolar, el lftp ^ ^
lftp
(Todo esto lo hago en la screen, claro ^ ^)
Antes de nada me voy a meter ya en la carpeta donde quiero que guarde. Así me quito lios.
En mi caso guardo en ~/shared, así que cd ~/shared
Y cargo el lftp: lftp -du usuario,contraseña -e open ftp://dirección.del.servidor:puerto
Ahí ya estamos dentro del servidor…todo bonito ^ ^
ls nos mostrará las carpetas, y cd nos meterá en ellas. Igual que en la navegación por consola, así que no le doy mas vueltas.
Cuando quiero bajar algo pongo mget loquesea
Cuando quiero bajar una carpeta completa pongo mirror -v loquesea
¿Y las colas?….¡Amigo, esa es la gracia de todo este lío! ^ ^
Hay que cargar a este cabroncete de cosas para bajar, y que se tire toda la noche/día/semana dándole ^ ^
Pues para eso se usa el comando queue, cola, delante de los comandos generales.
por ejemplo queue mirror -v loquesea me encolará ese archivo.
Se repite la operación como y cuanto necesites.
Para iniciar la cola es tan fácil como queue start….y para ver que tal va el tema vale con poner tan solo queue
Ahora imaginemos que nos hemos puesto a bajar cosas sin ton ni son, y queremos cambiar el orden en la cola…pues fácil: queue -m X Y, donde X es el numero de orden que tiene la bajada que queremos mover, e Y es a donde queremos mandarlo.
(Esto se mira en el status, queue vaya ^ ^)
Y ya está.
Le dejamos funcionar solito, sin mas.
Sin preocupaciones.
Echadle un ojo de vez en cuando al screen a ver que tal, pero es difícil que falle ^ ^