Guest_imported
New member
- Jan 1, 1970
- 0
Hi I'm having some trouble w/ getting iptables to work on Redhat 7.2
2.4.2-2 kernel, iptables-1.2.1a-1
I'm doing something very simple, just trying to get it to forward port 80
to an inside Ip (10.0.0.55)
from an outside ip. I scripted my setup below, and I can't see anything
wrong, I copied the iptables command
directly from the NAT 2.4 kernel HOWTO. Any ideas? I've been dealing w/
this problem for a month and have totally run into a wall.
thanks,
didget
Script started on Sun Dec 2 16:06:09 2001
[root@localhost bin]# lsmod
Module Size Used by
ipt_LOG 3856 0 (unused)
ip_conntrack_ftp 2448 0 (unused)
iptable_filter 2240 0 (autoclean) (unused)
iptable_nat 15968 0 (autoclean) (unused)
ip_conntrack 15824 2 (autoclean) [ip_conntrack_ftp
iptable_nat]
ip_tables 11488 5 [ipt_LOG iptable_filter iptable_nat]
autofs 11136 1 (autoclean)
3c59x 25312 2 (autoclean)
[root@localhost bin]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost bin]# iptables -t -nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost bin]# iptables -t nat -A PREROUTING -p tcp --dport 80 -i
eth0 -j DNAT --to 10.0.0.55:80
[root@localhost bin]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:http
to:10.0.0.55:80
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
2.4.2-2 kernel, iptables-1.2.1a-1
I'm doing something very simple, just trying to get it to forward port 80
to an inside Ip (10.0.0.55)
from an outside ip. I scripted my setup below, and I can't see anything
wrong, I copied the iptables command
directly from the NAT 2.4 kernel HOWTO. Any ideas? I've been dealing w/
this problem for a month and have totally run into a wall.
thanks,
didget
Script started on Sun Dec 2 16:06:09 2001
[root@localhost bin]# lsmod
Module Size Used by
ipt_LOG 3856 0 (unused)
ip_conntrack_ftp 2448 0 (unused)
iptable_filter 2240 0 (autoclean) (unused)
iptable_nat 15968 0 (autoclean) (unused)
ip_conntrack 15824 2 (autoclean) [ip_conntrack_ftp
iptable_nat]
ip_tables 11488 5 [ipt_LOG iptable_filter iptable_nat]
autofs 11136 1 (autoclean)
3c59x 25312 2 (autoclean)
[root@localhost bin]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost bin]# iptables -t -nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost bin]# iptables -t nat -A PREROUTING -p tcp --dport 80 -i
eth0 -j DNAT --to 10.0.0.55:80
[root@localhost bin]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:http
to:10.0.0.55:80
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination