|
|
|
iptable NAT/PAT inbound port forwarding without changing source address | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hi, I have a problem on a NSLU2 running openwrt to do inboud portforwarding to my internal webserver: iptables -A PREROUTING -t nat -i ppp0 -p tcp --dport 80 -j DNAT --to 192.168.1.10 iptables -I FORWARD -d 192.168.1.0/24 -j ACCEPT This works, however, when I look at the webserver, the traffic seams to come from my router (192.168.1.1) and not from the IPaddress on the internet. I don't know why he does this as I only configured a DNAT, no SNAT. - Is this normal? Or is this is a bug in openwrt? - Is there a way around this? The problem is that if all traffic comes from the router, this makes analysis of the log-files on the webserver pretty useless. Cheerio! Kr. Bonne. -- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Netdev] [Ethernet Bridging] [Linux 802.1Q VLAN] [Linux Wireless] [Kernel Newbies] [Security] [Linux for Hams] [Netfilter] [Git] [Bugtraq] [Photo] [Yosemite] [Yosemite News and Information] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux PCI] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]