Packet Forward to same interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,
  I have issue with packet forward from same interface.
  In my project There is two interface eth0 and br0
  br0 is created between eth1 (Lan switch) and wlan0 (wifi)
  eth0 has ip address 192.168.1.100 and br0 has ip 192.168.2.56
  In my setup I have one web server running on 8080 port and it is in my lan network and it's ip address is 192.168.2.60, So if any user from wan side want to access this server then it send packet to my Wan interface 192.168.1.100:8080 and I have apply port forwarding to this interface using iptables and this packet route to internal server 192.168.2.60:8080.
  Now if I want to access this server from my lan network, I have another PC with IP 192.168.2.57 with gateway address 192.168.2.56 and it want to use this server then there is tow way
  1. Directly connect to 192.168.2.60:8080
  2. using address 192.168.1.100:8080
   In Second case I have to route this packet to 192.168.2.60:8080 using same iptables rule.
   But it is works only if 0 is written in /proc/sys/net/bridge/bridge-nf-call-iptables file if I write 1 in this file then it stop working.
   Packet drop some where in bridge interface.
   Please do the needful for this.

Best Regards,
Chirag Patwari
 

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux