22
ноя
Hi all, GigabitEthernet4/0/0 = LAN interface - 192.168.1.1 Tap1 = tap interface - 192.168.1.2 Clients connected to LAN interface - 192.168.1.100 - 200 GigabitEthernet5/0/0 = WAN interface I want to redirect any traffic (tcp or udp) from clients (192.168.1.100 - 200) to a server running locally on the tap1 interface (192.168.1.2:80). This local server is a captive portal server. Example: Client visits google.com in a browser Instead of the browser showing google.com, it is shown 192.168.1.2:80/index.html How do I accomplish this? I came across ip punt redirect, but I am not familiar with it.
1932 SAMSUNG-GT-S5560/S5560XEIK2_SHP/VPP/R5_Dolfin/1.0. 0 2 0 3 0 49. 0 3 0 168 0 1. $ cat /tmp/api_script sw_interface_add_del_address sw_if_index 5 192.168.1.101/24 sw_interface_set_flags sw_if_index 5 admin-up link-down ip_add_del_route sw_if_index 5 1.2.3.4/32 via 192.168.1.1 resolve-attempts 3 Execute the vpe_api_test Script. Restart the data plane as before: # stop vpp # start vpp Execute the vpe_api_test script.
Thanks for the help. From: vpp-dev@. [mailto:vpp-dev@.] On Behalf Of carlito nueno Sent: Friday, December 28, 2018 8:59 AM To: vpp-dev@. Subject: Re: [vpp-dev] Question regarding captive portal Hi all, After more research, I found that most devices test connectivity by issuing an HTTP GET request, e.g. To captive.apple.com or connectivitycheck.gstatic.com/generate_204.
Construction scheduling software. Those challenges include tighter production budgets due to content diversification, industry consolidation and integration, an increasingly specialized workforce of employees and freelancers, and the use of state-of-the-art equipment.
How do I catch this http request and respond with 302 redirect that redirects user to lan ip address: 192.168.1.2:80/index.html. Happy holidays:). I couldn't find anything under NAT to make this work.
I tried the following: ---- set int state GigabitEthernet4/0/0 up. On Fri, Dec 28, 2018 at 1:52 PM carlito nueno via Lists.Fd.Io wrote: NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11790): Mute This Topic: Group Owner: vpp-dev+owner@. Unsubscribe: [carlitonueno@.] -=-=-=-=-=-=-=-=-=-=-=. From: vpp-dev@. On Behalf Of carlito nueno Sent: Friday, December 28, 2018 10:52 PM To: vpp-dev@.
Subject: Re: [vpp-dev] Question regarding captive portal NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks.
Hi all, GigabitEthernet4/0/0 = LAN interface - 192.168.1.1 Tap1 = tap interface - 192.168.1.2 Clients connected to LAN interface - 192.168.1.100 - 200 GigabitEthernet5/0/0 = WAN interface I want to redirect any traffic (tcp or udp) from clients (192.168.1.100 - 200) to a server running locally on the tap1 interface (192.168.1.2:80). This local server is a captive portal server. Example: Client visits google.com in a browser Instead of the browser showing google.com, it is shown 192.168.1.2:80/index.html How do I accomplish this? I came across ip punt redirect, but I am not familiar with it.
1932 SAMSUNG-GT-S5560/S5560XEIK2_SHP/VPP/R5_Dolfin/1.0. 0 2 0 3 0 49. 0 3 0 168 0 1. $ cat /tmp/api_script sw_interface_add_del_address sw_if_index 5 192.168.1.101/24 sw_interface_set_flags sw_if_index 5 admin-up link-down ip_add_del_route sw_if_index 5 1.2.3.4/32 via 192.168.1.1 resolve-attempts 3 Execute the vpe_api_test Script. Restart the data plane as before: # stop vpp # start vpp Execute the vpe_api_test script.
Thanks for the help. From: vpp-dev@. [mailto:vpp-dev@.] On Behalf Of carlito nueno Sent: Friday, December 28, 2018 8:59 AM To: vpp-dev@. Subject: Re: [vpp-dev] Question regarding captive portal Hi all, After more research, I found that most devices test connectivity by issuing an HTTP GET request, e.g. To captive.apple.com or connectivitycheck.gstatic.com/generate_204.
Construction scheduling software. Those challenges include tighter production budgets due to content diversification, industry consolidation and integration, an increasingly specialized workforce of employees and freelancers, and the use of state-of-the-art equipment.
How do I catch this http request and respond with 302 redirect that redirects user to lan ip address: 192.168.1.2:80/index.html. Happy holidays:). I couldn't find anything under NAT to make this work.
I tried the following: ---- set int state GigabitEthernet4/0/0 up. On Fri, Dec 28, 2018 at 1:52 PM carlito nueno via Lists.Fd.Io wrote: NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11790): Mute This Topic: Group Owner: vpp-dev+owner@. Unsubscribe: [carlitonueno@.] -=-=-=-=-=-=-=-=-=-=-=. From: vpp-dev@. On Behalf Of carlito nueno Sent: Friday, December 28, 2018 10:52 PM To: vpp-dev@.
Subject: Re: [vpp-dev] Question regarding captive portal NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks.
...">Test Vpp 168 Voprosov(22.11.2018)Hi all, GigabitEthernet4/0/0 = LAN interface - 192.168.1.1 Tap1 = tap interface - 192.168.1.2 Clients connected to LAN interface - 192.168.1.100 - 200 GigabitEthernet5/0/0 = WAN interface I want to redirect any traffic (tcp or udp) from clients (192.168.1.100 - 200) to a server running locally on the tap1 interface (192.168.1.2:80). This local server is a captive portal server. Example: Client visits google.com in a browser Instead of the browser showing google.com, it is shown 192.168.1.2:80/index.html How do I accomplish this? I came across ip punt redirect, but I am not familiar with it.
1932 SAMSUNG-GT-S5560/S5560XEIK2_SHP/VPP/R5_Dolfin/1.0. 0 2 0 3 0 49. 0 3 0 168 0 1. $ cat /tmp/api_script sw_interface_add_del_address sw_if_index 5 192.168.1.101/24 sw_interface_set_flags sw_if_index 5 admin-up link-down ip_add_del_route sw_if_index 5 1.2.3.4/32 via 192.168.1.1 resolve-attempts 3 Execute the vpe_api_test Script. Restart the data plane as before: # stop vpp # start vpp Execute the vpe_api_test script.
Thanks for the help. From: vpp-dev@. [mailto:vpp-dev@.] On Behalf Of carlito nueno Sent: Friday, December 28, 2018 8:59 AM To: vpp-dev@. Subject: Re: [vpp-dev] Question regarding captive portal Hi all, After more research, I found that most devices test connectivity by issuing an HTTP GET request, e.g. To captive.apple.com or connectivitycheck.gstatic.com/generate_204.
Construction scheduling software. Those challenges include tighter production budgets due to content diversification, industry consolidation and integration, an increasingly specialized workforce of employees and freelancers, and the use of state-of-the-art equipment.
How do I catch this http request and respond with 302 redirect that redirects user to lan ip address: 192.168.1.2:80/index.html. Happy holidays:). I couldn't find anything under NAT to make this work.
I tried the following: ---- set int state GigabitEthernet4/0/0 up. On Fri, Dec 28, 2018 at 1:52 PM carlito nueno via Lists.Fd.Io wrote: NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11790): Mute This Topic: Group Owner: vpp-dev+owner@. Unsubscribe: [carlitonueno@.] -=-=-=-=-=-=-=-=-=-=-=. From: vpp-dev@. On Behalf Of carlito nueno Sent: Friday, December 28, 2018 10:52 PM To: vpp-dev@.
Subject: Re: [vpp-dev] Question regarding captive portal NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks.
...">Test Vpp 168 Voprosov(22.11.2018)