last day (15 days later) » 

15:22
1
A: Forward only web traffic to another interface

pl_rockIf you want to forward from particular network to another network then you can use like: sudo ufw route allow in on eth0 out on eth1 to 10.0.0.0/8 port 80 from 192.168.0.0/16 or If you want to forward all network request then you can use like sudo ufw route allow in on eth0 out on et...

I tried , it is not working.
have you written any rule for outgoing . ? this will forward incoming address . write rule for outgoing
No, there is not rule for outgoing
sudo ufw route allow in on eth1 out on eth0 from 10.0.0.0/8 to 192.168.0.0/16
Please give me rule for outgoing address also
15:22
sudo ufw route allow in on eth0 out on eth1 to 10.0.0.0/8 port 80 from 192.168.0.0/16 sudo ufw route allow in on eth1 out on eth0 from 10.0.0.0/8 to 192.168.0.0/16 apply both rule
I tired but no luck
Still not able to access from public ip
I can access application from internal ip
and ufw is no blocking 80 traffic
wait 1 min
can you give me output of
sudo ufw status verbose
ohh ! this will allow only to access internal network.
you have to do NAT for that .
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), allow (routed)
New profiles: skip
80 on eth1 ALLOW FWD Anywhere on eth0
80 on eth0 ALLOW FWD Anywhere on eth1
80 (v6) on eth1 ALLOW FWD Anywhere (v6) on eth0
80 (v6) on eth0 ALLOW FWD Anywhere (v6) on eth1
run command
sysctl -w net.ipv4.ip_forward=1
or add to /etc/sysctl.conf
net.ipv4.ip_forward = 1
this will allow forwarding
15:40
It is the thing i checked
after that you have update change using command
sysctl -p /etc/sysctl.conf
Patel bhai ! better to write NAT rule.
Yes,I am writing that
bcoz this rule only allow . not forward
you have to explicitly forward
15:59
i have added to my answer please check that also.

last day (15 days later) »