but
itachi@cnt.uo.edu.cu wrote:
hello list
im trying to nat some address here but nothing happeds
check this rule
what is wrong in there=?
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
## Empezamos a filtrar
## Nota: eth0 es el interfaz conectado al router y eth1 a la LAN
# El localhost se deja (por ejemplo conexiones locales a mysql)
/sbin/iptables -A INPUT -i lo -j ACCEPT
iptables -t nat -A PREROUTING --dst 10.30.142.12 -p tcp --dport 80 -j
DNAT
\--to-destination 10.30.143.1
echo 1 > /proc/sys/net/ipv4/ip_forward
HI
You forgot the FORWARD
i.e. iptables -t filter -A FORWARD --dst 10.30.142.12 -p tcp --dport 80 -J
ACCEPT
now my table is whowing this
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
DROP icmp -- !10.30.142.3 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 10.30.142.12 tcp dpt:80
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
what about 10.30.143.1 ?
i thing on 10.30.143.1 is where i have running the webserver
but i want open the webserver on 10.30.142.12
HTH
Kind Regards
Brent Clark
--
To UNSUBSCRIBE, email to debian-firewall-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
-------------------------------------------------
Luis A. Rondon Paz
L I N U X .~. Admin intranet CNT
The Choice /V\ icq #132736035
of a GNU /( )\ itachi@cnt.uo.edu.cu
Generation ^^-^^ Santiago de cuba
UONET
###########
###############
#### ####
- ,$$P' ###
- ',$$P ,-*** ###
- `d$$' ,## * ###
- $$P ## * ###
- $$: ## - ###
- $$; ### ###
- Y$$. ` #######
- `$$b "-.__
- `Y$$b
- `Y$$.
- `$$b.
- `Y$$b.
- `"Y$b._
-------------------------------------------------