Security

how to preroute all the traffice from 443 to 8443

vin02
Path Finder

Splunk is running as non root user in our environment. we want to preroute all the traffic from port 443 to port 8443.

How to proceed with iptables and what are the policy needs to add in iptable?

0 Karma

FritzWittwer
Contributor

For Redhat the following commands are doing it:

/sbin/iptables -t nat -I PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-ports 8443
/etc/init.d/iptables save 
0 Karma

vin02
Path Finder

Its not working, I am not able to login through web url.

0 Karma

FritzWittwer
Contributor
  • did yo check the ip tables with iptables -vL
  • what is the error you get
  • can you connect to port 8443
0 Karma
Register for .conf21 Now! Go Vegas or Go Virtual!

How will you .conf21? You decide! Go in-person in Las Vegas, 10/18-10/21, or go online with .conf21 Virtual, 10/19-10/20.