-2

I have a router which runs busybox, it has iptables so i wanted to redirect all webpages clients request to a single webpage. I cant use hosts file because the /etc folder is mounted as read-only. Is it possible to do that using iptables? Im new to both linux and networking so please try to be clear.

1 Answers1

1

In order to perform HTTP redirects, you need something that understands the HTTP protocol, which iptables does not. You'll need to install an HTTP-aware application (e.g. a webserver) that you can configure to perform your redirect.

EEAA
  • 109,363
  • 18
  • 175
  • 245