First I would say "hello" to everybody, it's my first post here
but I've read this forum many times already.
My Slack 10.0 is in LAN and have IP 192.168.0.100. I receive packets from 192.168.0.109 and I have to resend them to gateway (192.168.0.1). But, it's impossible to use "echo > 1 /proc/sys/net/ipv4/ip_forward" because packets from 192.168.0.109 as a destination IP haven't 192.168.0.1, but for example IP of google or any other place in the Internet.
So, I thought that iptables will be helpful. I tried many tricks with PREROUTING, REDIRECT etc. but no ones worked. Because I can't forward those packets to gateway, 192.168.0.109 hasn't access to the Internet.
Please, can you give me a iptables' rule or say why this for example doesn't work?
iptables -t nat -A PREROUTING -i eth0 -p tcp -s 192.168.0.109 -d 0/0 -j REDIRECT --to 192.168.0.1
iptables -t nat -A PREROUTING -i eth0 -p udp -s 192.168.0.109 -d 0/0 -j REDIRECT --to 192.168.0.1
I'm outta my mind already. Maybe you now some different solution, sth like fragrouter or what?
yours sincerely,
Barca