[NoCatNet] Allow incoming connections

Alejandro Corell acorell at feriavalencia.com
Wed Apr 4 02:13:11 PDT 2007


Finally, I modified the initialization file for IPTABLES (initialize.fw)
:

# *** MODIFICACIONES PARA PERMITIR ACCESO A UN SERVIDOR INTERNO #
Redireccionamiento

iptables -t nat -A PREROUTING -p TCP --dport EXTERNAL_PORT -j DNAT --to
INTERNAL_IP:PORT 
iptables -t mangle -A NoCat -s INTERNAL_IP -j MARK --set-mark 0x3

# Mark inbound traffic to this node.
iptables -t filter -A NoCat_Inbound -d INTERNAL_IP -j ACCEPT

# *** FIN MODIFICACIONES PARA PERMITIR ACCESO A UN SERVIDOR INTERNO  

Alejandro.


-----Mensaje original-----
De: Max Slimmer [mailto:max at theslimmers.net] 
Enviado el: jueves, 29 de marzo de 2007 20:46
Para: Alejandro Corell; nocatnet at nocat.net
Asunto: RE: [NoCatNet] Allow incoming connections

This is probably better addressed to nocat list.  In order to see a real
ip address inside of your network there are a number of approaches, but
one is to DNAT that the external ip address to your internal address.
You in effect need a tunnel.

Max
 

> -----Original Message-----
> From: nocatnet-bounces at nocat.net
> [mailto:nocatnet-bounces at nocat.net] On Behalf Of Alejandro Corell
> Sent: Tuesday, March 27, 2007 10:13 AM
> To: nocatnet at nocat.net
> Subject: [NoCatNet] Allow incoming connections
> 
> Hello, I want allow incoming connection to port 8080. And I want 
> redirect this connection to an internal server. Actually Nocat is 
> working in NAT mode (not in routing mode).
> 
> INTERNET ----> Public IP for NOCAT HOST PORT 8080 -----> PRIVATE IP 
> for INTERNAL SERVER
> 
> Any ideas?
> 
> 
> Thanks in advance.
> 
> Alejandro Corell
> 
> 
> _______________________________________________
> NoCatNet mailing list
> NoCatNet at nocat.net
> http://lists.nocat.net/mailman/listinfo/nocatnet
> 





More information about the NoCatNet mailing list