Search found 2 matches
- 10 Nov 2014, 17:35
- Forum: General Discussion (csf)
- Topic: How to configure a redirect rule on the loopback interface
- Replies: 1
- Views: 1556
Re: How to configure a redirect rule on the loopback interfa
Found one solution - create / etc / csf/ csfpost. sh and add the command into it.
- 10 Nov 2014, 14:07
- Forum: General Discussion (csf)
- Topic: How to configure a redirect rule on the loopback interface
- Replies: 1
- Views: 1556
How to configure a redirect rule on the loopback interface
I need a rules to direct port 80 to port 8080 on the loopback interface, but the rule CSF generated excludes loopback (!lo). Is there a way I can have
iptables -t nat -I OUTPUT -p tcp -o lo --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -I OUTPUT -p tcp -o lo --dport 80 -j REDIRECT --to-ports 8080