Possible Duplicate:
iptables: forward port 80 to port 8080
I'd like to forward port 80 to 8080.
So I tried to edit /etc/syscongfig/iptables:
-A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
But got:
# service iptables restart
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK
I have few iptables rules which I want to use permanently.
I used an online tool to create an iptables firewall. Basically I just need port 22 and 1194 open to the outside world. But I noticed this bash script has input, forward and output chains as accept by default. Is it blocking all traffic but those two ports? Thanks.
Hi could could anyone help me understand why line 15 is failing supposedly in my iptables file.
I have inherited a custom built Linux kernel 2.6.30.9 and am just upgrading the underlying OS from RHEL 5.4 to 5.8 (kernels 2.6.18.164 and 2.6.18.308 respectively).
When booting, the following is displayed:
unloading iptables modules [ OK ]
Applying iptables firewall rules: modprobe: FATAL: module ip-tables not found.
iptables-restore v1.3.5: iptables-restore unable to init
I made a very simple bash script (echo at start, runs commands, echos at end) to add approx 7300 rules to iptables blocking much of China and Russia, however it gets through adding approximately 400 rules before giving the following error for every subsequent attempt to add a rule to that chain:
iptables: Unknown error 18446744073709551615
I even tried manually adding rules afterwards and it wo
Had a strange issue this morning.
I want to create the logging of iptables DROP's and intrusion attemps.
First, I put --log-prefix "iptables: " at the end of every iptables rules in my iptables rules file. But this doesn't work, as it says there is a syntax error. So where should I put that command?
I'm currently trying to get a little better understanding of iptables, and I am reading through the wiki page for Simple Stateful Firewall athttps://wiki.archlinux.org/index.php/Si … l_firewall , which is full of great examples.On this wiki, they create two user-defined chains, TCP, and UDP:iptables -N TCP
iptables -N UDPIt appears that they send new incoming tcp or udp traffic to these user-