What's new

IP-forwarding with Tomato/iptables

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sumsar

Occasional Visitor
Hi,

EDIT: SOLVED Typo

I'm running Tomato Shibby 085V on my Asus RT-N66U.
I would like to forward an ip request from LAN to another IP.
Any client on LAN trying to access 1.2.3.4 will be directed to 5.6.7.8 instead.

Something like this:
iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp -m tcp -j DNAT --to-destination 5.6.7.8

From what I remember I need to activate ip-forwarding by setting net.ipv4.ip_forward=1 in /etc/sysctl.conf in order for this to work. I don't have any sysctl.conf in my system and I feel quite lost on how to solve this.

Anyone with good Tomato/iptables knowhow who might be able to lead me in the right direction?
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
K Port Forwarding With Two Routers Other LAN and WAN 14

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top