0 like 0 dislike
1 view
in Bilgi Teknolojileri by anonymous Bilge (165k points)
tomcat 8080 portu yerine 80 kullanmak için ne yapmak gerekir ?

1 Answer

0 like 0 dislike
by anonymous Bilge (165k points)
# check that rules are not there already
sudo iptables -L -n -t nat
 

# Add rules
sudo iptables -t nat -I PREROUTING -p tcp --dport 80  -j REDIRECT --to-port 8080
sudo iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443

 # Check
sudo iptables -L -n -t nat
 

# Save
sudo /service iptables save
 

# Restart iptables
sudo /etc/init.diptables restart
 

# final check
sudo iptables -L -n -t nat
...